-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettingsdialog.h
42 lines (34 loc) · 878 Bytes
/
settingsdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QDialog>
#include <QSettings>
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QDialog {
Q_OBJECT
public:
explicit SettingsDialog(QWidget* parent);
~SettingsDialog();
void setSettings(QSettings* settings);
private:
Ui::SettingsDialog* ui;
QSettings* settings;
// QDialog interface
public slots:
void reject();
void accept();
// QWidget interface
protected:
void mousePressEvent(QMouseEvent* event);
protected slots:
void keyAChanged(Qt::Key key);
void keyBChanged(Qt::Key key);
void keySelectChanged(Qt::Key key);
void keyStartChanged(Qt::Key key);
void keyUpChanged(Qt::Key key);
void keyDownChanged(Qt::Key key);
void keyRightChanged(Qt::Key key);
void keyLeftChanged(Qt::Key key);
};
#endif // SETTINGSDIALOG_H