X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fcoreconfigwizard.cpp;h=471837bfde491d835027877ed13a3ec6e6a40038;hb=37110ceaa070167b4f40ed449ac9ea130503a792;hp=a9453facec5d577628d632772c1f764965b666b7;hpb=934fa4151f48fd12549fe0772cfbc995c6e63034;p=quassel.git diff --git a/src/qtui/coreconfigwizard.cpp b/src/qtui/coreconfigwizard.cpp index a9453fac..471837bf 100644 --- a/src/qtui/coreconfigwizard.cpp +++ b/src/qtui/coreconfigwizard.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,17 +18,17 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include "coreconfigwizard.h" + #include #include #include #include -#include #include -#include "coreconfigwizard.h" -#include "coreconnection.h" - #include "client.h" +#include "coreconnection.h" +#include "icon.h" namespace { @@ -159,7 +159,7 @@ CoreConfigWizard::CoreConfigWizard(CoreConnection *connection, const QVariantLis setModal(true); setWindowTitle(CoreConfigWizard::tr("Core Configuration Wizard")); - setPixmap(QWizard::LogoPixmap, QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png")).pixmap(48)); + setPixmap(QWizard::LogoPixmap, icon::get("quassel").pixmap(48)); connect(connection, SIGNAL(coreSetupSuccess()), SLOT(coreSetupSuccess())); connect(connection, SIGNAL(coreSetupFailed(QString)), SLOT(coreSetupFailed(QString))); @@ -188,7 +188,7 @@ void CoreConfigWizard::prepareCoreSetup(const QString &backend, const QVariantMa // FIXME? We need to be able to set up older cores that don't have auth backend support. // So if the core doesn't support that feature, don't pass those parameters. - if (!(Client::coreFeatures() & Quassel::Authenticators)) { + if (!Client::isCoreFeatureEnabled(Quassel::Feature::Authenticators)) { coreConnection()->setupCore(Protocol::SetupData(field("adminUser.user").toString(), field("adminUser.password").toString(), backend, properties)); } else { @@ -267,7 +267,7 @@ AdminUserPage::AdminUserPage(QWidget *parent) : QWizardPage(parent) int AdminUserPage::nextId() const { // If the core doesn't support auth backends, skip that page! - if (!(Client::coreFeatures() & Quassel::Authenticators)) { + if (!Client::isCoreFeatureEnabled(Quassel::Feature::Authenticators)) { return CoreConfigWizard::StorageSelectionPage; } else {