2017-09-29 16:52:33 +00:00
|
|
|
#ifndef TOGGLESETTINGSEDITOR_H
|
|
|
|
#define TOGGLESETTINGSEDITOR_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2022-02-17 14:22:14 +00:00
|
|
|
#include <QColorDialog>
|
|
|
|
|
2022-02-17 15:17:19 +00:00
|
|
|
#include <toggle.h>
|
2022-02-17 14:22:14 +00:00
|
|
|
|
2017-09-29 16:52:33 +00:00
|
|
|
#include "ui_togglesettingsform.h"
|
|
|
|
|
2022-02-17 14:22:14 +00:00
|
|
|
using namespace md;
|
2017-09-29 16:52:33 +00:00
|
|
|
|
|
|
|
class ToggleSettingsEditor : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ToggleSettingsEditor(QWidget *parent = 0);
|
|
|
|
~ToggleSettingsEditor();
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void setupForm();
|
|
|
|
void updateWidget();
|
|
|
|
void selectColor();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ToggleSettingsForm *const ui;
|
2022-02-17 14:22:14 +00:00
|
|
|
Toggle *const m_toggle;
|
2017-09-29 16:52:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TOGGLESETTINGSEDITOR_H
|