X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcoreconnectionsettingspage.cpp;h=a9d0bca7d3be475f88c662469cd77972855a70b6;hp=4113a4e77fd19ae06f690b894f4954ab7425b448;hb=e50ae7a06fc4e5d3a911c361d30953410deab609;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222 diff --git a/src/qtui/settingspages/coreconnectionsettingspage.cpp b/src/qtui/settingspages/coreconnectionsettingspage.cpp index 4113a4e7..a9d0bca7 100644 --- a/src/qtui/settingspages/coreconnectionsettingspage.cpp +++ b/src/qtui/settingspages/coreconnectionsettingspage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -24,7 +24,7 @@ CoreConnectionSettingsPage::CoreConnectionSettingsPage(QWidget *parent) : SettingsPage(tr("Remote Cores"), tr("Connection"), parent) { ui.setupUi(this); -#ifndef HAVE_KDE +#ifndef HAVE_KDE4 ui.useSolid->hide(); #endif @@ -49,7 +49,7 @@ void CoreConnectionSettingsPage::widgetHasChanged() void CoreConnectionSettingsPage::defaults() { -#ifdef HAVE_KDE +#ifdef HAVE_KDE4 setRadioButtons(CoreConnectionSettings::UseSolid); #else setRadioButtons(CoreConnectionSettings::UsePingTimeout); @@ -80,7 +80,7 @@ void CoreConnectionSettingsPage::save() void CoreConnectionSettingsPage::setRadioButtons(CoreConnectionSettings::NetworkDetectionMode mode) { switch (mode) { -#ifdef HAVE_KDE +#ifdef HAVE_KDE4 case CoreConnectionSettings::UseSolid: ui.useSolid->setChecked(true); break; @@ -96,7 +96,7 @@ void CoreConnectionSettingsPage::setRadioButtons(CoreConnectionSettings::Network CoreConnectionSettings::NetworkDetectionMode CoreConnectionSettingsPage::modeFromRadioButtons() const { -#ifdef HAVE_KDE +#ifdef HAVE_KDE4 if (ui.useSolid->isChecked()) return CoreConnectionSettings::UseSolid; #endif