qt-material-widgets/components/qtmaterialavatar_p.h

38 lines
715 B
C
Raw Normal View History

#ifndef QTMATERIALAVATAR_P_H
#define QTMATERIALAVATAR_P_H
2022-07-05 07:49:55 +00:00
#include "lib/qtmaterialtheme.h"
#include <QChar>
2022-07-05 07:49:55 +00:00
#include <QColor>
#include <QIcon>
2022-07-05 07:49:55 +00:00
#include <QImage>
#include <QPixmap>
2022-07-05 07:49:55 +00:00
#include <QtGlobal>
class QtMaterialAvatar;
class QtMaterialAvatarPrivate
{
Q_DISABLE_COPY(QtMaterialAvatarPrivate)
Q_DECLARE_PUBLIC(QtMaterialAvatar)
public:
QtMaterialAvatarPrivate(QtMaterialAvatar *q);
~QtMaterialAvatarPrivate();
void init();
QtMaterialAvatar *const q_ptr;
2022-07-05 07:49:55 +00:00
int size;
Material::AvatarType type;
QChar letter;
QImage image;
QIcon icon;
QPixmap pixmap;
bool useThemeColors;
QColor textColor;
QColor backgroundColor;
};
2022-07-05 07:49:55 +00:00
#endif // QTMATERIALAVATAR_P_H