restructured project to include packaging files
[buliscores] / src / src / settingsdialog.h
1 #ifndef SETTINGSDIALOG_H
2 #define SETTINGSDIALOG_H
3
4 #include <QDialog>
5 #include <QCloseEvent>
6 #include <QSettings>
7 #include <QAbstractButton>
8
9 namespace Ui {
10     class SettingsDialog;
11 }
12
13 class SettingsDialog : public QDialog
14 {
15     Q_OBJECT
16
17 public:
18     explicit SettingsDialog(QWidget *parent = 0);
19     ~SettingsDialog();
20
21 protected:
22     void closeEvent(QCloseEvent);
23
24 protected slots:
25     void onLeagueSelected(QAbstractButton* button);
26
27 private:
28     Ui::SettingsDialog *ui;
29     QSettings settings;
30 };
31
32 #endif // SETTINGSDIALOG_H