qtmaterialflatbutton_p.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef QTMATERIALFLATBUTTON_P_H
  2. #define QTMATERIALFLATBUTTON_P_H
  3. #include <QtGlobal>
  4. #include <QColor>
  5. #include "lib/qtmaterialtheme.h"
  6. class QtMaterialFlatButton;
  7. class QtMaterialRippleOverlay;
  8. class QtMaterialFlatButtonStateMachine;
  9. class QtMaterialFlatButtonPrivate
  10. {
  11. Q_DISABLE_COPY(QtMaterialFlatButtonPrivate)
  12. Q_DECLARE_PUBLIC(QtMaterialFlatButton)
  13. public:
  14. QtMaterialFlatButtonPrivate(QtMaterialFlatButton *q);
  15. virtual ~QtMaterialFlatButtonPrivate();
  16. void init();
  17. QtMaterialFlatButton *const q_ptr;
  18. QtMaterialRippleOverlay *rippleOverlay;
  19. QtMaterialFlatButtonStateMachine *stateMachine;
  20. Material::Role role;
  21. Material::RippleStyle rippleStyle;
  22. Material::ButtonIconPlacement iconPlacement;
  23. Material::OverlayStyle overlayStyle;
  24. Qt::BGMode bgMode;
  25. Qt::Alignment textAlignment;
  26. QColor backgroundColor;
  27. QColor foregroundColor;
  28. QColor overlayColor;
  29. QColor disabledColor;
  30. QColor disabledBackgroundColor;
  31. qreal fixedRippleRadius;
  32. qreal cornerRadius;
  33. qreal baseOpacity;
  34. qreal fontSize;
  35. bool useThemeColors;
  36. bool useFixedRippleRadius;
  37. bool haloVisible;
  38. };
  39. #endif // QTMATERIALFLATBUTTON_P_H