qt-material-widgets/components/qtmaterialtoggle_p.h

44 lines
1021 B
C++

#ifndef QTMATERIALTOGGLE_P_H
#define QTMATERIALTOGGLE_P_H
#include <Qt>
namespace md
{
class QStateMachine;
class QState;
class QColor;
class Toggle;
class ToggleTrack;
class ToggleThumb;
class ToggleRippleOverlay;
class TogglePrivate
{
Q_DISABLE_COPY(TogglePrivate)
Q_DECLARE_PUBLIC(Toggle)
public:
TogglePrivate(Toggle *q);
~TogglePrivate();
void init();
void setupProperties();
Toggle *const q_ptr;
ToggleTrack *track;
ToggleThumb *thumb;
ToggleRippleOverlay *rippleOverlay;
QStateMachine *stateMachine;
QState *offState;
QState *onState;
Qt::Orientation orientation;
QColor disabledColor;
QColor activeColor;
QColor inactiveColor;
QColor trackColor;
bool useThemeColors;
};
}
#endif // QTMATERIALTOGGLE_P_H