2017-09-28 15:12:28 +00:00
|
|
|
#ifndef AVATARSETTINGSEDITOR_H
|
|
|
|
#define AVATARSETTINGSEDITOR_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2022-02-17 11:06:23 +00:00
|
|
|
|
|
|
|
#include <QColorDialog>
|
|
|
|
#include <qtmaterialavatar.h>
|
|
|
|
#include <lib/qtmaterialtheme.h>
|
2022-02-17 12:40:12 +00:00
|
|
|
|
2017-09-28 15:12:28 +00:00
|
|
|
#include "ui_avatarsettingsform.h"
|
|
|
|
|
2022-02-17 11:06:23 +00:00
|
|
|
using namespace md;
|
2017-09-28 15:12:28 +00:00
|
|
|
|
|
|
|
class AvatarSettingsEditor : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit AvatarSettingsEditor(QWidget *parent = 0);
|
|
|
|
~AvatarSettingsEditor();
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void setupForm();
|
|
|
|
void updateWidget();
|
|
|
|
void selectColor();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::AvatarSettingsForm *const ui;
|
2022-02-17 11:06:23 +00:00
|
|
|
Avatar *const m_avatar;
|
2017-09-28 15:12:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AVATARSETTINGSEDITOR_H
|