qt-material-widgets/components/qtmaterialavatar_p.h

43 lines
653 B
C
Raw Normal View History

#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;
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
}
#endif // QTMATERIALAVATAR_P_H