Remove defunct colorscheme KNS upload button

wilder-5.24
Alexander Lohnau 4 years ago
parent a4b3cd3cd5
commit 0dbec4febf
  1. 20
      kcms/colors/editor/scmeditordialog.cpp
  2. 2
      kcms/colors/editor/scmeditordialog.h
  3. 13
      kcms/colors/editor/scmeditordialog.ui

@ -20,8 +20,6 @@
#include <KStandardGuiItem>
#include <KWindowSystem>
#include <KNS3/UploadDialog>
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) {

@ -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);

@ -33,19 +33,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="schemeKnsUploadButton">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>Share the selected scheme on the Internet</string>
</property>
<property name="text">
<string>Upload Scheme</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">

Loading…
Cancel
Save