From: Michal MalĂ˝ Date: Sun, 17 Nov 2013 14:03:13 +0000 (+0100) Subject: Fix alignment and description in About window. X-Git-Tag: 0.1c~1 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=5771a97babbba93728086efd0e6652fe4c51f13c;p=anyanka.git Fix alignment and description in About window. --- diff --git a/gui/aboutanyanka.cpp b/gui/aboutanyanka.cpp index d3bae24..43720f9 100644 --- a/gui/aboutanyanka.cpp +++ b/gui/aboutanyanka.cpp @@ -29,9 +29,17 @@ AboutAnyanka::AboutAnyanka(QWidget *parent) : QDialog(parent), ui(new Ui::AboutAnyanka) { + QString version; + QString qtVersion; + ui->setupUi(this); - ui->ql_version->setText(GlobalInfo::APP_VERSION_STRING()); - ui->ql_qtVersion->setText(qVersion()); + setWindowTitle("About Anyanka"); + version = ui->ql_version->text(); + qtVersion = ui->ql_qtVersion->text(); + version += " " + GlobalInfo::APP_VERSION_STRING(); + qtVersion += " " + QString(qVersion()); + ui->ql_version->setText(version); + ui->ql_qtVersion->setText(qtVersion); ui->ql_qtLogo->setPixmap(QPixmap("://resources/Qt_master_logo.png").scaled(ui->ql_qtLogo->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation)); } diff --git a/gui/aboutanyanka.ui b/gui/aboutanyanka.ui index 4bf4e57..4f92871 100644 --- a/gui/aboutanyanka.ui +++ b/gui/aboutanyanka.ui @@ -33,33 +33,20 @@ Anyanka - - - - 135 - 60 - 53 - 16 - - - - Version: - - - 185 + 8 60 - 41 - 16 + 345 + 20 - - + Version: - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + Qt::AlignCenter @@ -78,41 +65,28 @@ Qt::AlignCenter - - - - 90 - 280 - 151 - 16 - - - - Using Qt 5 libraries version: - - - 244 + 8 280 - 41 - 16 + 345 + 20 - - + Using Qt 5 libraries version: - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + Qt::AlignCenter - 62 + 8 240 - 240 + 346 21 @@ -126,6 +100,9 @@ "Fear nothing except for bunnies!" + + Qt::AlignCenter +