Added settings dialog
[speedfreak] / Client / settingsdialog.cpp
1 #include "settingsdialog.h"
2 #include "ui_settingsdialog.h"
3
4 SettingsDialog::SettingsDialog(QWidget *parent) :
5     QDialog(parent),
6     ui(new Ui::SettingsDialog)
7 {
8     ui->setupUi(this);
9     this->setWindowTitle("Settings");
10     instructionsDialog = new InstructionsDialog;
11 }
12
13 SettingsDialog::~SettingsDialog()
14 {
15     delete ui;
16 }
17
18 void SettingsDialog::changeEvent(QEvent *e)
19 {
20     QDialog::changeEvent(e);
21     switch (e->type()) {
22     case QEvent::LanguageChange:
23         ui->retranslateUi(this);
24         break;
25     default:
26         break;
27     }
28 }
29
30 void SettingsDialog::on_pushButtonHelp_clicked()
31 {
32     instructionsDialog->show();
33 }