2017-09-28 10:12:30 +00:00
|
|
|
#ifndef QTMATERIALAVATAR_P_H
|
|
|
|
#define QTMATERIALAVATAR_P_H
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QChar>
|
|
|
|
#include <QImage>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <QColor>
|
|
|
|
#include "lib/qtmaterialtheme.h"
|
|
|
|
|
2022-02-17 00:53:19 +00:00
|
|
|
namespace md
|
|
|
|
{
|
|
|
|
|
|
|
|
class Avatar;
|
2017-09-28 10:12:30 +00:00
|
|
|
|
2022-02-17 00:53:19 +00:00
|
|
|
class AvatarPrivate
|
2017-09-28 10:12:30 +00:00
|
|
|
{
|
2022-02-17 00:53:19 +00:00
|
|
|
Q_DISABLE_COPY(AvatarPrivate)
|
|
|
|
Q_DECLARE_PUBLIC(Avatar)
|
2017-09-28 10:12:30 +00:00
|
|
|
|
|
|
|
public:
|
2022-02-17 00:53:19 +00:00
|
|
|
AvatarPrivate(Avatar *q);
|
|
|
|
~AvatarPrivate();
|
2017-09-28 10:12:30 +00:00
|
|
|
|
|
|
|
void init();
|
|
|
|
|
2022-02-17 00:53:19 +00:00
|
|
|
Avatar *const q_ptr;
|
|
|
|
int size;
|
|
|
|
Material::AvatarType type;
|
|
|
|
QChar letter;
|
|
|
|
QImage image;
|
|
|
|
QIcon icon;
|
|
|
|
QPixmap pixmap;
|
|
|
|
bool useThemeColors;
|
|
|
|
QColor textColor;
|
|
|
|
QColor backgroundColor;
|
2017-09-28 10:12:30 +00:00
|
|
|
};
|
|
|
|
|
2022-02-17 00:53:19 +00:00
|
|
|
}
|
|
|
|
|
2017-09-28 10:12:30 +00:00
|
|
|
#endif // QTMATERIALAVATAR_P_H
|