Commit bfedc087 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Remove usage of npw disfunctional KNewStuff upload feature

parent 7e119221
Pipeline #208992 passed with stage
in 18 minutes and 25 seconds
......@@ -13,7 +13,6 @@
#include <language/codegen/templatesmodel.h>
#include <KNS3/DownloadDialog>
#include <KNS3/UploadDialog>
#include <KArchive>
#include <KZip>
#include <KTar>
......@@ -30,10 +29,6 @@ m_provider(provider)
connect(ui->getNewButton, &QPushButton::clicked,
this, &TemplatePage::getMoreTemplates);
ui->shareButton->setVisible(!m_provider->knsConfigurationFile().isEmpty());
connect(ui->shareButton, &QPushButton::clicked,
this, &TemplatePage::shareTemplates);
ui->loadButton->setVisible(!m_provider->supportedMimeTypes().isEmpty());
connect(ui->loadButton, &QPushButton::clicked,
this, &TemplatePage::loadFromFile);
......@@ -85,12 +80,6 @@ void TemplatePage::getMoreTemplates()
}
}
void TemplatePage::shareTemplates()
{
KDevelop::ScopedDialog<KNS3::UploadDialog> dialog(m_provider->knsConfigurationFile(), this);
dialog->exec();
}
void TemplatePage::currentIndexChanged(const QModelIndex& index)
{
QString archive = ui->treeView->model()->data(index, KDevelop::TemplatesModel::ArchiveFileRole).toString();
......
......@@ -30,7 +30,6 @@ public:
private Q_SLOTS:
void loadFromFile();
void getMoreTemplates();
void shareTemplates();
void currentIndexChanged(const QModelIndex& index);
void extractTemplate();
......
......@@ -44,18 +44,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="shareButton">
<property name="text">
<string comment="@action:button">Share Templates</string>
</property>
<property name="icon">
<iconset theme="get-hot-new-stuff">
<normaloff/>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="extractButton">
<property name="text">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment