CkechBox moved.
This commit is contained in:
parent
168ac029bf
commit
336b50e2ad
|
@ -4,6 +4,8 @@
|
|||
#include <QSignalTransition>
|
||||
#include <QState>
|
||||
#include "lib/qtmaterialcheckable_internal.h"
|
||||
namespace md
|
||||
{
|
||||
|
||||
/*!
|
||||
* \class QtMaterialCheckBoxPrivate
|
||||
|
@ -13,24 +15,24 @@
|
|||
/*!
|
||||
* \internal
|
||||
*/
|
||||
QtMaterialCheckBoxPrivate::QtMaterialCheckBoxPrivate(QtMaterialCheckBox *q)
|
||||
: QtMaterialCheckablePrivate(q)
|
||||
CheckBoxPrivate::CheckBoxPrivate(CheckBox *q)
|
||||
: CheckablePrivate(q)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
* \internal
|
||||
*/
|
||||
QtMaterialCheckBoxPrivate::~QtMaterialCheckBoxPrivate()
|
||||
CheckBoxPrivate::~CheckBoxPrivate()
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
* \internal
|
||||
*/
|
||||
void QtMaterialCheckBoxPrivate::init()
|
||||
void CheckBoxPrivate::init()
|
||||
{
|
||||
Q_Q(QtMaterialCheckBox);
|
||||
Q_Q(CheckBox);
|
||||
|
||||
checkedState->assignProperty(checkedIcon, "iconSize", 24);
|
||||
uncheckedState->assignProperty(checkedIcon, "iconSize", 0);
|
||||
|
@ -74,12 +76,14 @@ void QtMaterialCheckBoxPrivate::init()
|
|||
* \class QtMaterialCheckBox
|
||||
*/
|
||||
|
||||
QtMaterialCheckBox::QtMaterialCheckBox(QWidget *parent)
|
||||
: QtMaterialCheckable(*new QtMaterialCheckBoxPrivate(this), parent)
|
||||
CheckBox::CheckBox(QWidget *parent)
|
||||
: Checkable(*new CheckBoxPrivate(this), parent)
|
||||
{
|
||||
d_func()->init();
|
||||
}
|
||||
|
||||
QtMaterialCheckBox::~QtMaterialCheckBox()
|
||||
CheckBox::~CheckBox()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,19 +3,23 @@
|
|||
|
||||
#include "lib/qtmaterialcheckable.h"
|
||||
|
||||
class QtMaterialCheckBoxPrivate;
|
||||
namespace md
|
||||
{
|
||||
|
||||
class QtMaterialCheckBox : public QtMaterialCheckable
|
||||
class CheckBoxPrivate;
|
||||
|
||||
class CheckBox : public Checkable
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QtMaterialCheckBox(QWidget *parent = 0);
|
||||
~QtMaterialCheckBox();
|
||||
explicit CheckBox(QWidget *parent = 0);
|
||||
~CheckBox();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QtMaterialCheckBox)
|
||||
Q_DECLARE_PRIVATE(QtMaterialCheckBox)
|
||||
Q_DISABLE_COPY(CheckBox)
|
||||
Q_DECLARE_PRIVATE(CheckBox)
|
||||
};
|
||||
|
||||
}
|
||||
#endif // QTMATERIALCHECKBOX_H
|
||||
|
|
|
@ -2,19 +2,21 @@
|
|||
#define QTMATERIALCHECKBOX_P_H
|
||||
|
||||
#include "lib/qtmaterialcheckable_p.h"
|
||||
|
||||
class QtMaterialCheckBox;
|
||||
|
||||
class QtMaterialCheckBoxPrivate : public QtMaterialCheckablePrivate
|
||||
namespace md
|
||||
{
|
||||
Q_DISABLE_COPY(QtMaterialCheckBoxPrivate)
|
||||
Q_DECLARE_PUBLIC(QtMaterialCheckBox)
|
||||
|
||||
class CheckBox;
|
||||
|
||||
class CheckBoxPrivate : public CheckablePrivate
|
||||
{
|
||||
Q_DISABLE_COPY(CheckBoxPrivate)
|
||||
Q_DECLARE_PUBLIC(CheckBox)
|
||||
|
||||
public:
|
||||
QtMaterialCheckBoxPrivate(QtMaterialCheckBox *q);
|
||||
~QtMaterialCheckBoxPrivate();
|
||||
CheckBoxPrivate(CheckBox *q);
|
||||
~CheckBoxPrivate();
|
||||
|
||||
void init();
|
||||
};
|
||||
|
||||
}
|
||||
#endif // QTMATERIALCHECKBOX_P_H
|
||||
|
|
Loading…
Reference in New Issue