feat: v1.4.2 创建一个类 ExSwitchButton 和 ExSwitchButtonPrivate 类成功,解决了q_fun() 和 d_fun() 的编译不通过的问题
This commit is contained in:
@@ -36,16 +36,20 @@ EXWIDGET_BEGIN_NAMESPACE
|
||||
* \~chinese \sa Qt 自带的 QPushButtonPrivate, QPushButton 实现
|
||||
*/
|
||||
|
||||
class ExSwitchButton;
|
||||
class ExSwitchButtonPrivate : public QObjectPrivate {
|
||||
|
||||
class ExSwitchButtonPrivate : public QObjectPrivate
|
||||
{
|
||||
public:
|
||||
ExSwitchButtonPrivate(ExSwitchButton *qq);
|
||||
explicit ExSwitchButtonPrivate();
|
||||
~ExSwitchButtonPrivate();
|
||||
|
||||
void init();
|
||||
|
||||
public:
|
||||
bool m_checked; //switch 是否处于开启状态
|
||||
|
||||
public:
|
||||
Q_DECLARE_PUBLIC(ExSwitchButton) //要加上宏
|
||||
};
|
||||
|
||||
EXWIDGET_END_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user