Blame view

app/gui/oven_control/configfavoritebutton.cpp 591 Bytes
776411ce5   고영탁   설정 기능 5월 개발 범위 UI...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #include "configfavoritebutton.h"
  #include "ui_configfavoritebutton.h"
  
  ConfigFavoriteButton::ConfigFavoriteButton(QWidget *parent,uint16_t btn_id) :
      QWidget(parent),
      ui(new Ui::ConfigFavoriteButton)
  {
      ui->setupUi(this);
      btnid = btn_id;
  
  }
  
  ConfigFavoriteButton::~ConfigFavoriteButton()
  {
      delete ui;
  }
  
  void ConfigFavoriteButton::setText(const QString &text){
      ui->pushButton->setText(text);
  }
  
  
  
  void ConfigFavoriteButton::on_favoriteButton_clicked()
  {
      emit delBtnClicked(btnid);
  }
  
  void ConfigFavoriteButton::on_pushButton_clicked()
  {
      emit clicked(btnid);
  }