ArchitectureColoredPainting/qt-material-widgets/examples/iconbuttonsettingseditor.h

34 lines
672 B
C
Raw Normal View History

2023-03-06 12:38:25 +08:00
#ifndef ICONBUTTONSETTINGSMANAGER_H
#define ICONBUTTONSETTINGSMANAGER_H
#include <QWidget>
#include "ui_iconbuttonsettingsform.h"
class QtMaterialIconButton;
class IconButtonSettingsEditor : public QWidget
{
Q_OBJECT
public:
explicit IconButtonSettingsEditor(QWidget *parent = 0);
~IconButtonSettingsEditor();
protected:
explicit IconButtonSettingsEditor(QtMaterialIconButton *button, QWidget *parent = 0);
Ui::IconButtonSettingsForm *const ui;
protected slots:
void setupForm();
void updateWidget();
void selectColor();
private:
void init();
QtMaterialIconButton *const m_button;
};
#endif // ICONBUTTONSETTINGSMANAGER_H