From 5771a97babbba93728086efd0e6652fe4c51f13c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 17 Nov 2013 15:03:13 +0100 Subject: [PATCH] Fix alignment and description in About window. --- gui/aboutanyanka.cpp | 12 ++++++++-- gui/aboutanyanka.ui | 53 +++++++++++++------------------------------- 2 files changed, 25 insertions(+), 40 deletions(-) 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 + -- 2.43.5