qt-material-widgets/components/toggle_p.h

39 lines
765 B
C
Raw Normal View History

2016-05-28 21:01:24 +00:00
#ifndef TOGGLE_P_H
#define TOGGLE_P_H
2016-05-29 11:58:20 +00:00
#include <QStateMachine>
2016-05-29 10:08:55 +00:00
2016-05-29 13:42:13 +00:00
class RippleOverlay;
2016-05-29 19:12:02 +00:00
class Toggle;
class ToggleThumb;
class ToggleTrack;
2016-05-29 13:42:13 +00:00
2016-05-29 10:08:55 +00:00
class TogglePrivate
{
Q_DISABLE_COPY(TogglePrivate)
Q_DECLARE_PUBLIC(Toggle)
public:
TogglePrivate(Toggle *q);
void init();
2016-06-05 19:23:16 +00:00
void updatePalette();
Toggle *const q_ptr;
ToggleTrack *const track;
ToggleThumb *const thumb;
QState *const offState;
QState *const onState;
RippleOverlay *ripple;
2016-06-12 21:17:46 +00:00
QStateMachine *machine;
2016-05-29 10:25:14 +00:00
Qt::Orientation orientation;
2016-06-05 19:23:16 +00:00
QColor disabledColor;
QColor activeColor;
QColor inactiveColor;
QColor trackColor;
bool useThemeColors;
2016-05-29 10:08:55 +00:00
};
2016-05-28 21:01:24 +00:00
#endif // TOGGLE_P_H