From 53de2db89c6da54895c3182a4001834263ac66fb Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 21 Jun 2014 11:04:52 +0200 Subject: [PATCH] Clean up code leftovers --- oracle/src/oracleimporter.cpp | 20 +------------------- oracle/src/oraclewizard.cpp | 8 -------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index a95481e2..c531a036 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -205,25 +205,7 @@ int OracleImporter::importTextSpoiler(CardSet *set, const QVariant &data) return cards; } -/* -QString OracleImporter::getPictureUrl(QString url, int cardId, QString name, const QString &setName) const -{ - if ((name == "Island") || (name == "Swamp") || (name == "Mountain") || (name == "Plains") || (name == "Forest")) - name.append("1"); - return url.replace("!cardid!", QString::number(cardId)).replace("!set!", setName).replace("!name!", name - .replace("รถ", "o") -// .remove('\'') - .remove(" // ") -// .remove(',') -// .remove(':') -// .remove('.') - .remove(QRegExp("\\(.*\\)")) - .simplified() -// .replace(' ', '_') -// .replace('-', '_') - ); -} -*/ + int OracleImporter::startImport() { clear(); diff --git a/oracle/src/oraclewizard.cpp b/oracle/src/oraclewizard.cpp index 92bcaa4c..5869b873 100644 --- a/oracle/src/oraclewizard.cpp +++ b/oracle/src/oraclewizard.cpp @@ -19,10 +19,6 @@ OracleWizard::OracleWizard(QWidget *parent) addPage(new ChooseSetsPage); addPage(new SaveSetsPage); -/* - setPixmap(QWizard::BannerPixmap, QPixmap(":/images/banner.png")); - setPixmap(QWizard::BackgroundPixmap, QPixmap(":/images/background.png")); -*/ setWindowTitle(tr("Oracle Importer")); } @@ -47,7 +43,6 @@ IntroPage::IntroPage(QWidget *parent) : OracleWizardPage(parent) { setTitle(tr("Introduction")); - //setPixmap(QWizard::WatermarkPixmap, QPixmap(":/images/watermark1.png")); label = new QLabel(tr("This wizard will import the list of sets and cards " "that will be used by Cockatrice. You will need to " @@ -69,7 +64,6 @@ LoadSetsPage::LoadSetsPage(QWidget *parent) setSubTitle(tr("Please specify a source for the list of sets and cards. " "You can specify an url address that will be download or " "use an existing file from your computer.")); - //setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo1.png")); urlRadioButton = new QRadioButton(tr("Download url:"), this); fileRadioButton = new QRadioButton(tr("Local file:"), this); @@ -327,8 +321,6 @@ SaveSetsPage::SaveSetsPage(QWidget *parent) setSubTitle(tr("The following sets has been imported. " "Press \"Done\" to save the imported cards to the Cockatrice database.")); -// setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo3.png")); - messageLog = new QTextEdit(this); messageLog->setReadOnly(true);