summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-06 06:28:33 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-06 17:16:34 (GMT)
commit4ddf6b6dd129102ae7761e3a46987f1f5d1a666e (patch)
tree5113272d0417ab8ea56a41415450fded05c12ad8
parent081fc03556708447610e9697a57235fa191a4f0d (diff)
downloadswift-4ddf6b6dd129102ae7761e3a46987f1f5d1a666e.zip
swift-4ddf6b6dd129102ae7761e3a46987f1f5d1a666e.tar.bz2
Brushed off About Dialog.
-rw-r--r--Swift/QtUI/QtAboutWidget.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/Swift/QtUI/QtAboutWidget.cpp b/Swift/QtUI/QtAboutWidget.cpp
index 87be272..8b072e4 100644
--- a/Swift/QtUI/QtAboutWidget.cpp
+++ b/Swift/QtUI/QtAboutWidget.cpp
@@ -25,19 +25,21 @@ QtAboutWidget::QtAboutWidget() : QDialog() {
QLabel* iconLabel = new QLabel(this);
iconLabel->setPixmap(QIcon(":/logo-shaded-text.256.png").pixmap(90, 90));
+ iconLabel->setAlignment(Qt::AlignHCenter);
mainLayout->addWidget(iconLabel);
- QLabel* appNameLabel = new QLabel("<font size='+1'><b>" + QCoreApplication::applicationName() + "</b></font>", this);
- //appNameLabel->setTextFormat
+ QLabel* appNameLabel = new QLabel("<center><font size='+1'><b>" + QCoreApplication::applicationName() + "</b></font></center>", this);
mainLayout->addWidget(appNameLabel);
- QLabel* versionLabel = new QLabel(QString("<font size='-1'>Version ") + QCoreApplication::applicationVersion() + "</font>", this);
+ QLabel* versionLabel = new QLabel(QString("<center><font size='-1'>Version ") + QCoreApplication::applicationVersion() + "</font></center>", this);
mainLayout->addWidget(versionLabel);
- QString buildString = QString("<font size='-1'><centre>Built with: Qt version ") + QT_VERSION_STR;
- buildString += QString("</centre><br/><centre>Running with Qt version ") + qVersion();
- buildString += "</centre></font>";
+ QString buildString = QString("<center><font size='-1'>Built with: Qt version ") + QT_VERSION_STR;
+ buildString += QString("<br/>Running with Qt version ") + qVersion();
+ buildString += "</font></center>";
QLabel* buildLabel = new QLabel(buildString, this);
mainLayout->addWidget(buildLabel);
+
+ setFixedSize(minimumSizeHint());
}
}