qt-material-widgets/components/avatar_p.h

35 lines
661 B
C
Raw Normal View History

2016-06-17 13:09:19 +00:00
#ifndef AVATAR_P_H
#define AVATAR_P_H
#include <QObject>
2016-06-19 14:13:37 +00:00
#include <QImage>
#include <QIcon>
#include <QPixmap>
2016-06-17 14:27:20 +00:00
#include "lib/theme.h"
2016-06-17 13:09:19 +00:00
class Avatar;
class AvatarPrivate
{
Q_DISABLE_COPY(AvatarPrivate)
Q_DECLARE_PUBLIC(Avatar)
public:
AvatarPrivate(Avatar *q);
void init();
2016-06-17 14:27:20 +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;
2016-06-17 13:09:19 +00:00
};
#endif // AVATAR_P_H