summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/AboutDialog.cpp
diff options
context:
space:
mode:
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);