mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add version label to Oracle Importer (#2818)
This commit is contained in:
parent
6b1ea9186a
commit
7c8daf68ea
2 changed files with 5 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include "oracleimporter.h"
|
||||
#include "main.h"
|
||||
#include "settingscache.h"
|
||||
#include "version_string.h"
|
||||
|
||||
#define ZIP_SIGNATURE "PK"
|
||||
#define ALLSETS_URL_FALLBACK "https://mtgjson.com/json/AllSets.json"
|
||||
|
|
@ -118,6 +119,7 @@ IntroPage::IntroPage(QWidget *parent)
|
|||
label->setWordWrap(true);
|
||||
|
||||
languageLabel = new QLabel(this);
|
||||
versionLabel = new QLabel(this);
|
||||
languageBox = new QComboBox(this);
|
||||
QString setLanguage = settingsCache->getLang();
|
||||
QStringList qmFiles = findQmFiles();
|
||||
|
|
@ -133,6 +135,7 @@ IntroPage::IntroPage(QWidget *parent)
|
|||
layout->addWidget(label, 0, 0, 1, 2);
|
||||
layout->addWidget(languageLabel, 1, 0);
|
||||
layout->addWidget(languageBox, 1, 1);
|
||||
layout->addWidget(versionLabel, 4, 0);
|
||||
|
||||
setLayout(layout);
|
||||
}
|
||||
|
|
@ -169,6 +172,7 @@ void IntroPage::retranslateUi()
|
|||
"\nYou will need to specify a URL or a filename that "
|
||||
"will be used as a source."));
|
||||
languageLabel->setText(tr("Language:"));
|
||||
versionLabel->setText(tr("Version: %1").arg(VERSION_STRING));
|
||||
}
|
||||
|
||||
LoadSetsPage::LoadSetsPage(QWidget *parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue