qt-material-widgets/components/lib/checkable_p.h

52 lines
1.4 KiB
C
Raw Normal View History

2022-02-17 15:17:19 +00:00
#ifndef CHECKABLE_P_H
#define CHECKABLE_P_H
2017-09-29 06:53:21 +00:00
#include <QtGlobal>
#include <QPainter>
#include <QEvent>
#include <QStateMachine>
#include <QSignalTransition>
#include <QEventTransition>
#include <QColor>
#include <QCoreApplication>
2022-02-17 15:17:19 +00:00
#include "lib/checkable.h"
2017-09-29 06:53:21 +00:00
namespace md
{
class RippleOverlay;
class CheckableIcon;
2017-09-29 06:53:21 +00:00
class CheckablePrivate
2017-09-29 06:53:21 +00:00
{
Q_DISABLE_COPY(CheckablePrivate)
Q_DECLARE_PUBLIC(Checkable)
2017-09-29 06:53:21 +00:00
public:
CheckablePrivate(Checkable *q);
virtual ~CheckablePrivate();
2017-09-29 06:53:21 +00:00
void init();
Checkable *const q_ptr;
RippleOverlay *rippleOverlay;
CheckableIcon *checkedIcon;
CheckableIcon *uncheckedIcon;
2017-09-29 06:53:21 +00:00
QStateMachine *stateMachine;
QState *uncheckedState;
QState *checkedState;
QState *disabledUncheckedState;
QState *disabledCheckedState;
QSignalTransition *uncheckedTransition;
QSignalTransition *checkedTransition;
Checkable::LabelPosition labelPosition;
2017-09-29 06:53:21 +00:00
QColor checkedColor;
QColor uncheckedColor;
QColor textColor;
QColor disabledColor;
bool useThemeColors;
};
}
2017-09-29 06:53:21 +00:00
2022-02-17 15:17:19 +00:00
#endif // CHECKABLE_P_H