porymap/include/ui/preferenceeditor.h

36 lines
621 B
C
Raw Normal View History

#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QMainWindow>
2020-11-16 14:35:55 +00:00
class NoScrollComboBox;
class QAbstractButton;
namespace Ui {
class PreferenceEditor;
}
2021-02-18 00:20:14 +00:00
class PreferenceEditor : public QMainWindow {
Q_OBJECT
public:
2021-02-18 00:20:14 +00:00
explicit PreferenceEditor(QWidget* parent = nullptr);
~PreferenceEditor();
2020-11-16 14:35:55 +00:00
signals:
void preferencesSaved();
2021-02-18 00:20:14 +00:00
void themeChanged(const QString& theme);
2020-11-16 14:35:55 +00:00
private:
2021-02-18 00:20:14 +00:00
Ui::PreferenceEditor* ui;
NoScrollComboBox* themeSelector;
void populateFields();
void saveFields();
private slots:
2021-02-18 00:20:14 +00:00
void dialogButtonClicked(QAbstractButton* button);
};
#endif // PREFERENCES_H