summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-03 05:49:23 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-03 05:49:23 (GMT)
commit670996d0a5105446b594019841d147c3b9a918d2 (patch)
treec30e52f27824d0f36c5bd23eb7f52a15479c1272
parentd0c06d5d4f2a8b6b54d72d1cb5133e2b99eff3fb (diff)
Don't settings https
-rw-r--r--autotests/gravatarconfiguresettingsdialogtest.cpp2
-rw-r--r--src/widgets/gravatarconfiguresettingsdialog.cpp7
-rw-r--r--src/widgets/gravatarconfiguresettingsdialog.h2
3 files changed, 7 insertions, 4 deletions
diff --git a/autotests/gravatarconfiguresettingsdialogtest.cpp b/autotests/gravatarconfiguresettingsdialogtest.cpp
index 3b8c2ba..cea4246 100644
--- a/autotests/gravatarconfiguresettingsdialogtest.cpp
+++ b/autotests/gravatarconfiguresettingsdialogtest.cpp
@@ -60,8 +60,10 @@ void GravatarConfigureSettingsDialogTest::shouldHaveDefaultValue()
QVERIFY(fallbackGravatar);
QVERIFY(!fallbackGravatar->isEnabled());
+#if 0
QCheckBox *useHttps = dlg.findChild<QCheckBox *>(QStringLiteral("usehttps"));
QVERIFY(useHttps);
+#endif
KSeparator *separator = dlg.findChild<KSeparator *>(QStringLiteral("separator"));
QVERIFY(separator);
diff --git a/src/widgets/gravatarconfiguresettingsdialog.cpp b/src/widgets/gravatarconfiguresettingsdialog.cpp
index 40e2517..7aca37b 100644
--- a/src/widgets/gravatarconfiguresettingsdialog.cpp
+++ b/src/widgets/gravatarconfiguresettingsdialog.cpp
@@ -51,10 +51,11 @@ GravatarConfigureSettingsDialog::GravatarConfigureSettingsDialog(QWidget *parent
mUseDefaultPixmap->setObjectName(QStringLiteral("usedefaultimage"));
topLayout->addWidget(mUseDefaultPixmap);
+#if 0
mUseHttps = new QCheckBox(i18n("Use HTTPS"), this);
mUseHttps->setObjectName(QStringLiteral("usehttps"));
topLayout->addWidget(mUseHttps);
-
+#endif
mUseLibravatar = new QCheckBox(i18n("Use Libravatar"), this);
mUseLibravatar->setObjectName(QStringLiteral("uselibravatarcheckbox"));
topLayout->addWidget(mUseLibravatar);
@@ -117,7 +118,7 @@ void GravatarConfigureSettingsDialog::save()
saveSpinBox(mGravatarCacheSize, Gravatar::GravatarSettings::self()->gravatarCacheSizeItem());
saveCheckBox(mFallbackGravatar, Gravatar::GravatarSettings::self()->fallbackToGravatarItem());
saveCheckBox(mUseLibravatar, Gravatar::GravatarSettings::self()->libravatarSupportEnabledItem());
- saveCheckBox(mUseHttps, Gravatar::GravatarSettings::self()->gravatarHttpsSupportItem());
+ //saveCheckBox(mUseHttps, Gravatar::GravatarSettings::self()->gravatarHttpsSupportItem());
accept();
}
@@ -127,7 +128,7 @@ void GravatarConfigureSettingsDialog::load()
loadWidget(mGravatarCacheSize, Gravatar::GravatarSettings::self()->gravatarCacheSizeItem());
loadWidget(mFallbackGravatar, Gravatar::GravatarSettings::self()->fallbackToGravatarItem());
loadWidget(mUseLibravatar, Gravatar::GravatarSettings::self()->libravatarSupportEnabledItem());
- loadWidget(mUseHttps, Gravatar::GravatarSettings::self()->gravatarHttpsSupportItem());
+ //loadWidget(mUseHttps, Gravatar::GravatarSettings::self()->gravatarHttpsSupportItem());
}
void GravatarConfigureSettingsDialog::slotClearGravatarCache()
diff --git a/src/widgets/gravatarconfiguresettingsdialog.h b/src/widgets/gravatarconfiguresettingsdialog.h
index 3e3a484..b3e7d2d 100644
--- a/src/widgets/gravatarconfiguresettingsdialog.h
+++ b/src/widgets/gravatarconfiguresettingsdialog.h
@@ -44,7 +44,7 @@ private:
QCheckBox *mUseDefaultPixmap;
QCheckBox *mUseLibravatar;
QCheckBox *mFallbackGravatar;
- QCheckBox *mUseHttps;
+ //QCheckBox *mUseHttps;
QPushButton *mClearGravatarCache;
KPluralHandlingSpinBox *mGravatarCacheSize;
};