-
Notifications
You must be signed in to change notification settings - Fork 0
/
aboutdialog.cpp
46 lines (36 loc) · 1.09 KB
/
aboutdialog.cpp
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
43
44
45
46
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
AboutDialog::AboutDialog(QWidget *parent) :
QWidget(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
InitLayout();
QTextCodec::setCodecForTr(QTextCodec::codecForName("Windows-1251"));
ui->labelProductName->setText("Limowski App Manager");
ui->labelVersion->setText(tr("Âåðñèÿ: ") + QString(APP_VERSION));
ui->labelBuild->setText(tr("Ñáîðêà îò: ") + QString(BUILDDATE));
ui->labelCompanyName->setText(tr("Àâòîð: ") + QString(APP_VENDOR));
ui->textBoxDescription_5->setText("Small Application Manager for Symbian S60");
}
AboutDialog::~AboutDialog()
{
delete ui;
}
void AboutDialog::on_OKButton_clicked()
{
this->close();
emit closed();
}
void AboutDialog::InitLayout()
{
const QRect ScreenRect = QApplication::desktop()->screenGeometry();
this->setGeometry(ScreenRect);
ui->ContentLayout->setGeometry(ScreenRect);
ui->layoutWidget->setGeometry(ScreenRect);
ui->TitleLabel->setAutoFillBackground(true);
}
void AboutDialog::resizeEvent(QResizeEvent *event)
{
InitLayout();
}