From 4ddf6b6dd129102ae7761e3a46987f1f5d1a666e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Thu, 6 May 2010 08:28:33 +0200 Subject: Brushed off About Dialog. 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("" + QCoreApplication::applicationName() + "", this); - //appNameLabel->setTextFormat + QLabel* appNameLabel = new QLabel("
" + QCoreApplication::applicationName() + "
", this); mainLayout->addWidget(appNameLabel); - QLabel* versionLabel = new QLabel(QString("Version ") + QCoreApplication::applicationVersion() + "", this); + QLabel* versionLabel = new QLabel(QString("
Version ") + QCoreApplication::applicationVersion() + "
", this); mainLayout->addWidget(versionLabel); - QString buildString = QString("Built with: Qt version ") + QT_VERSION_STR; - buildString += QString("
Running with Qt version ") + qVersion(); - buildString += "
"; + QString buildString = QString("
Built with: Qt version ") + QT_VERSION_STR; + buildString += QString("
Running with Qt version ") + qVersion(); + buildString += "
"; QLabel* buildLabel = new QLabel(buildString, this); mainLayout->addWidget(buildLabel); + + setFixedSize(minimumSizeHint()); } } -- cgit v0.10.2-6-g49f6