From 0dbec4febf44b3371de10eb2d7a03744b874dd55 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 10 Nov 2021 19:01:47 +0100 Subject: [PATCH] Remove defunct colorscheme KNS upload button --- kcms/colors/editor/scmeditordialog.cpp | 20 -------------------- kcms/colors/editor/scmeditordialog.h | 2 -- kcms/colors/editor/scmeditordialog.ui | 13 ------------- 3 files changed, 35 deletions(-) diff --git a/kcms/colors/editor/scmeditordialog.cpp b/kcms/colors/editor/scmeditordialog.cpp index 676a47173..07df373c2 100644 --- a/kcms/colors/editor/scmeditordialog.cpp +++ b/kcms/colors/editor/scmeditordialog.cpp @@ -20,8 +20,6 @@ #include #include -#include - SchemeEditorDialog::SchemeEditorDialog(KSharedConfigPtr config, QWidget *parent) : QDialog(parent) { @@ -56,8 +54,6 @@ void SchemeEditorDialog::init() { setupUi(this); - schemeKnsUploadButton->setIcon(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff"))); - m_optionTab = new SchemeEditorOptions(m_config); m_colorTab = new SchemeEditorColors(m_config); m_disabledTab = new SchemeEditorEffects(m_config, QPalette::Disabled); @@ -82,22 +78,6 @@ void SchemeEditorDialog::init() updateTabs(); } -void SchemeEditorDialog::on_schemeKnsUploadButton_clicked() -{ - if (m_unsavedChanges) { - KMessageBox::ButtonCode reallyUpload = - KMessageBox::questionYesNo(this, i18n("This colour scheme was not saved. Continue?"), i18n("Do you really want to upload?")); - if (reallyUpload == KMessageBox::No) { - return; - } - } - - // upload - KNS3::UploadDialog dialog(QStringLiteral("colorschemes.knsrc"), this); - dialog.setUploadFile(QUrl::fromLocalFile(m_config->name())); - dialog.exec(); -} - void SchemeEditorDialog::on_buttonBox_clicked(QAbstractButton *button) { if (buttonBox->standardButton(button) == QDialogButtonBox::Reset) { diff --git a/kcms/colors/editor/scmeditordialog.h b/kcms/colors/editor/scmeditordialog.h index 6297c58b8..7da0ee7a0 100644 --- a/kcms/colors/editor/scmeditordialog.h +++ b/kcms/colors/editor/scmeditordialog.h @@ -35,8 +35,6 @@ Q_SIGNALS: private Q_SLOTS: - /** slot called when the upload scheme button is clicked */ - void on_schemeKnsUploadButton_clicked(); void on_buttonBox_clicked(QAbstractButton *button); diff --git a/kcms/colors/editor/scmeditordialog.ui b/kcms/colors/editor/scmeditordialog.ui index e0bf3c474..91ebffcf8 100644 --- a/kcms/colors/editor/scmeditordialog.ui +++ b/kcms/colors/editor/scmeditordialog.ui @@ -33,19 +33,6 @@ - - - - true - - - Share the selected scheme on the Internet - - - Upload Scheme - - -