图片开关新增选中切换信号

This commit is contained in:
feiyangqingyun
2022-04-28 08:36:11 +08:00
parent b2c999dd83
commit 293a8d9c40
4 changed files with 19 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ private:
public:
bool getChecked() const;
ButtonStyle getButtonStyle() const;
QSize sizeHint() const;
QSize minimumSizeHint() const;
@@ -54,6 +55,9 @@ public Q_SLOTS:
void setChecked(bool isChecked);
//设置按钮样式
void setButtonStyle(const ImageSwitch::ButtonStyle &buttonStyle);
Q_SIGNALS:
void checkedChanged(bool checked);
};
#endif // IMAGESWITCH_H