File: pausedialog.cpp

package info (click to toggle)
imageshack-uploader 2.2%2Bhg20100408.d802dea89428-5.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,608 kB
  • sloc: cpp: 5,539; ansic: 1,012; makefile: 26; sh: 5
file content (37 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (2)
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
#include <QSettings>
#include "pausedialog.h"
#include "ui_pausedialog.h"

PauseDialog::PauseDialog(QWidget *parent) :
    QDialog(parent),
    m_ui(new Ui::PauseDialog)
{
    m_ui->setupUi(this);
}

PauseDialog::~PauseDialog()
{
    delete m_ui;
}

void PauseDialog::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void PauseDialog::accept()
{
    if (m_ui->hide->isChecked())
    {
        QSettings sets;
        sets.setValue("hidePauseWarning", QVariant(true));
    }
    QDialog::accept();
}