qtmaterialtoggle_p.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef QTMATERIALTOGGLE_P_H
  2. #define QTMATERIALTOGGLE_P_H
  3. #include <Qt>
  4. class QStateMachine;
  5. class QState;
  6. class QColor;
  7. class QtMaterialToggle;
  8. class QtMaterialToggleTrack;
  9. class QtMaterialToggleThumb;
  10. class QtMaterialToggleRippleOverlay;
  11. class QtMaterialTogglePrivate
  12. {
  13. Q_DISABLE_COPY(QtMaterialTogglePrivate)
  14. Q_DECLARE_PUBLIC(QtMaterialToggle)
  15. public:
  16. QtMaterialTogglePrivate(QtMaterialToggle *q);
  17. ~QtMaterialTogglePrivate();
  18. void init();
  19. void setupProperties();
  20. QtMaterialToggle *const q_ptr;
  21. QtMaterialToggleTrack *track;
  22. QtMaterialToggleThumb *thumb;
  23. QtMaterialToggleRippleOverlay *rippleOverlay;
  24. QStateMachine *stateMachine;
  25. QState *offState;
  26. QState *onState;
  27. Qt::Orientation orientation;
  28. QColor disabledColor;
  29. QColor activeColor;
  30. QColor inactiveColor;
  31. QColor trackColor;
  32. bool useThemeColors;
  33. };
  34. #endif // QTMATERIALTOGGLE_P_H