QtExamples/QtMyStyleEx/QtExample03/QtStyleEx/myswitchbutton_p.h

30 lines
821 B
C
Raw Normal View History

#ifndef MYSWITCHBUTTON_P_H
#define MYSWITCHBUTTON_P_H
#include <private/qobject_p.h>
/*!
* \~chinese \class MySwitchButtonPrivate
* \~chinese \brief MySwitchButton 便/, _Private
* , QObjectPrivate , 使 Q_Q Q_D q_fun()
* \~chinese \sa Qt QPushButtonPrivate QPushButton
*/
class MySwitchButtonPrivate : public QObjectPrivate
{
public:
explicit MySwitchButtonPrivate();
~MySwitchButtonPrivate();
void init();
public:
bool checked;
double animationStart;
double animationEnd;
public:
Q_DECLARE_PUBLIC(MySwitchButton) //要加上宏
};
#endif // MYSWITCHBUTTON_P_H