porymap/include/ui/preferenceeditor.h

40 lines
644 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;
}
class PreferenceEditor : public QMainWindow
{
Q_OBJECT
public:
explicit PreferenceEditor(QWidget *parent = nullptr);
~PreferenceEditor();
void updateFields();
2020-11-16 14:35:55 +00:00
signals:
void preferencesSaved();
void themeChanged(const QString &theme);
private:
Ui::PreferenceEditor *ui;
2020-11-16 14:35:55 +00:00
NoScrollComboBox *themeSelector;
void initFields();
void saveFields();
private slots:
void dialogButtonClicked(QAbstractButton *button);
};
#endif // PREFERENCES_H