qtmaterialbadge_p.h 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef QTMATERIALBADGE_P_H
  2. #define QTMATERIALBADGE_P_H
  3. #include <QtGlobal>
  4. #include <QSize>
  5. #include <QIcon>
  6. #include <QColor>
  7. class QtMaterialBadge;
  8. class QtMaterialBadgePrivate
  9. {
  10. Q_DISABLE_COPY(QtMaterialBadgePrivate)
  11. Q_DECLARE_PUBLIC(QtMaterialBadge)
  12. public:
  13. QtMaterialBadgePrivate(QtMaterialBadge *q);
  14. ~QtMaterialBadgePrivate();
  15. void init();
  16. QtMaterialBadge *const q_ptr;
  17. QString text;
  18. QColor textColor;
  19. QColor backgroundColor;
  20. QSize size;
  21. QIcon icon;
  22. qreal x;
  23. qreal y;
  24. int padding;
  25. bool useThemeColors;
  26. };
  27. #endif // QTMATERIALBADGE_P_H