Reset indicator when the screen is locked
[ameter] / about.cpp
1 #include "about.h"
2
3 char *about = "2D acceleration indicator\n"
4         "Copyright (C) 2011 Ivan Gorinov\n"
5         "http://catori.ru/igorinov/software/ameter/";
6
7 AboutDialog::AboutDialog(QWidget *parent): QDialog(parent)
8 {
9         QHBoxLayout *hbox;
10         QVBoxLayout *vbox;
11
12         vbox = new QVBoxLayout();
13
14         label = new QLabel(QString::fromUtf8(about), this);
15         vbox->addWidget(label);
16
17         buttonOk = new QPushButton("Ok");
18         vbox->addWidget(buttonOk);
19
20         connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
21
22         setLayout(vbox);
23
24         layout()->setSizeConstraint(QLayout::SetFixedSize);
25 }
26
27 AboutDialog::~AboutDialog()
28 {
29 }
30
31 void AboutDialog::accept()
32 {
33         QDialog::accept();
34 }
35