qt-material-widgets/components/avatar_p.h

43 lines
613 B
C
Raw Normal View History

2022-02-17 15:17:19 +00:00
#ifndef AVATAR_P_H
#define AVATAR_P_H
#include <QtGlobal>
#include <QChar>
#include <QImage>
#include <QIcon>
#include <QPixmap>
#include <QColor>
2022-02-17 15:17:19 +00:00
#include "lib/theme.h"
2022-02-17 00:53:19 +00:00
namespace md
{
class Avatar;
2022-02-17 00:53:19 +00:00
class AvatarPrivate
{
2022-02-17 00:53:19 +00:00
Q_DISABLE_COPY(AvatarPrivate)
Q_DECLARE_PUBLIC(Avatar)
public:
2022-02-17 00:53:19 +00:00
AvatarPrivate(Avatar *q);
~AvatarPrivate();
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;
};
2022-02-17 00:53:19 +00:00
}
2022-02-17 15:17:19 +00:00
#endif // AVATAR_P_H