configfavoritebutton.h
690 Bytes
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
33
34
35
36
37
#ifndef CONFIGFAVORITEBUTTON_H
#define CONFIGFAVORITEBUTTON_H
#include <QWidget>
namespace Ui {
class ConfigFavoriteButton;
}
class ConfigFavoriteButton : public QWidget
{
Q_OBJECT
public:
explicit ConfigFavoriteButton(QWidget *parent = 0,uint16_t id = 0);
~ConfigFavoriteButton();
void setText(const QString &text);
private:
Ui::ConfigFavoriteButton *ui;
QString text_;
QRect textRect;
uint16_t btnid;
signals:
void clicked(uint16_t);
void delBtnClicked(uint16_t);
private slots:
void on_favoriteButton_clicked();
void on_pushButton_clicked();
public:
uint16_t getBtnId(void){return btnid;};
};
#endif // CONFIGFAVORITEBUTTON_H