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