#ifndef CONFIGFAVORITEBUTTON_H #define CONFIGFAVORITEBUTTON_H #include 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