summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/AboutDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-04-05 22:58:47 +0200
committerPetr Mrázek <peterix@gmail.com>2014-04-06 00:33:33 +0200
commit42e305bb9d1babef9bb66a8d376289e8aebed671 (patch)
tree7cad2b473abc703d3c9f29daee7f5560d6e22e76 /gui/dialogs/AboutDialog.cpp
parentad9d082f5713df72fc18de957547b7ad47a60e46 (diff)
downloadMultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.gz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.lz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.xz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.zip
Get rid of long rebuilds because of minor cmake config changes
Diffstat (limited to 'gui/dialogs/AboutDialog.cpp')
-rw-r--r--gui/dialogs/AboutDialog.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/gui/dialogs/AboutDialog.cpp b/gui/dialogs/AboutDialog.cpp
index 35c85815..944a61c8 100644
--- a/gui/dialogs/AboutDialog.cpp
+++ b/gui/dialogs/AboutDialog.cpp
@@ -18,6 +18,7 @@
#include <QIcon>
#include "MultiMC.h"
#include "gui/Platform.h"
+#include "Config.h"
AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog)
{
@@ -27,19 +28,19 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDia
ui->urlLabel->setOpenExternalLinks(true);
ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64));
- ui->title->setText("MultiMC 5 " + MMC->version().toString());
+ ui->title->setText("MultiMC 5 " + BuildConfig.printableVersionString());
- ui->versionLabel->setText(tr("Version") +": " + MMC->version().toString());
- ui->vtypeLabel->setText(tr("Version Type") +": " + MMC->version().typeName());
- ui->platformLabel->setText(tr("Platform") +": " + MMC->version().platform);
+ ui->versionLabel->setText(tr("Version") +": " + BuildConfig.printableVersionString());
+ ui->vtypeLabel->setText(tr("Version Type") +": " + BuildConfig.versionTypeName());
+ ui->platformLabel->setText(tr("Platform") +": " + BuildConfig.BUILD_PLATFORM);
- if (MMC->version().build >= 0)
- ui->buildNumLabel->setText(tr("Build Number") +": " + QString::number(MMC->version().build));
+ if (BuildConfig.VERSION_BUILD >= 0)
+ ui->buildNumLabel->setText(tr("Build Number") +": " + QString::number(BuildConfig.VERSION_BUILD));
else
ui->buildNumLabel->setVisible(false);
- if (!MMC->version().channel.isEmpty())
- ui->channelLabel->setText(tr("Channel") +": " + MMC->version().channel);
+ if (!BuildConfig.VERSION_CHANNEL.isEmpty())
+ ui->channelLabel->setText(tr("Channel") +": " + BuildConfig.VERSION_CHANNEL);
else
ui->channelLabel->setVisible(false);