qt-material-widgets/components/qtmaterialbadge_p.h

38 lines
698 B
C
Raw Normal View History

2017-09-28 22:01:01 +00:00
#ifndef QTMATERIALBADGE_P_H
#define QTMATERIALBADGE_P_H
#include <QtGlobal>
#include <QSize>
#include <QIcon>
#include <QColor>
2022-02-17 02:06:23 +00:00
namespace md
{
class Badge;
2017-09-28 22:01:01 +00:00
2022-02-17 02:06:23 +00:00
class BadgePrivate
2017-09-28 22:01:01 +00:00
{
2022-02-17 02:06:23 +00:00
Q_DISABLE_COPY(BadgePrivate)
Q_DECLARE_PUBLIC(Badge)
2017-09-28 22:01:01 +00:00
public:
2022-02-17 02:06:23 +00:00
BadgePrivate(Badge *q);
~BadgePrivate();
2017-09-28 22:01:01 +00:00
void init();
2022-02-17 02:06:23 +00:00
Badge *const q_ptr;
2017-09-28 22:01:01 +00:00
QString text;
QColor textColor;
QColor backgroundColor;
QSize size;
QIcon icon;
qreal x;
qreal y;
int padding;
bool useThemeColors;
};
2022-02-17 02:06:23 +00:00
}
2017-09-28 22:01:01 +00:00
#endif // QTMATERIALBADGE_P_H