36 lines
649 B
C++
36 lines
649 B
C++
#ifndef PREFERENCESDLG_H
|
|
#define PREFERENCESDLG_H
|
|
|
|
#include <QDialog>
|
|
#include "settings.h"
|
|
|
|
namespace Ui {
|
|
class PreferencesDlg;
|
|
}
|
|
|
|
class PreferencesDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PreferencesDlg(QWidget *parent, Settings& settings);
|
|
~PreferencesDlg();
|
|
|
|
private:
|
|
Ui::PreferencesDlg *ui;
|
|
Settings& mSettings;
|
|
|
|
void applyTheme();
|
|
|
|
private slots:
|
|
void selectDatabase();
|
|
void accepted();
|
|
void smartStopSettingChanged(bool v);
|
|
void smartStartSettingChanged(bool);
|
|
void smartStopWayChanged();
|
|
void allowStartAfterIdleControls();
|
|
void onChangeAppFont();
|
|
};
|
|
|
|
#endif // PREFERENCESDLG_H
|