diff --git a/packagestructure.cpp b/packagestructure.cpp index 218bfd85c..ab67da3ab 100644 --- a/packagestructure.cpp +++ b/packagestructure.cpp @@ -762,12 +762,6 @@ bool PackageStructure::uninstallPackage(const QString &packageName, const QStrin return true; } -void PackageStructure::createNewWidgetBrowser(QWidget *parent) -{ - Q_UNUSED(parent) - emit newWidgetBrowserFinished(); -} - QString PackageStructure::defaultPackageRoot() const { return d->packageRoot; diff --git a/packagestructure.h b/packagestructure.h index dcb9746d0..fcc3a3e3b 100644 --- a/packagestructure.h +++ b/packagestructure.h @@ -270,20 +270,6 @@ public: */ virtual bool uninstallPackage(const QString &packageName, const QString &packageRoot); - /** - * When called, the package plugin should display a window to the user - * that they can use to browser, select and then install widgets supported by - * this package plugin with. - * - * The user interface may be an in-process dialog or an out-of-process application. - * - * When the process is complete, the newWidgetBrowserFinished() signal must be - * emitted. - * - * @param parent the parent widget to use for the widget - */ - virtual void createNewWidgetBrowser(QWidget *parent = 0); - /** * @return the prefix paths inserted between the base path and content entries, in order of priority. * When searching for a file, all paths will be tried in order. @@ -317,12 +303,6 @@ public: */ bool allowExternalPaths() const; -Q_SIGNALS: - /** - * Emitted when the new widget browser process completes. - */ - void newWidgetBrowserFinished(); - protected: /** * Sets whether or not external paths/symlinks can be followed by a package diff --git a/private/packages.cpp b/private/packages.cpp index 0af536e47..2fd09c718 100644 --- a/private/packages.cpp +++ b/private/packages.cpp @@ -81,9 +81,6 @@ PlasmoidPackage::PlasmoidPackage(QObject *parent) PlasmoidPackage::~PlasmoidPackage() { -#ifndef PLASMA_NO_KNEWSTUFF - delete m_knsDialog.data(); -#endif } void PlasmoidPackage::pathChanged() @@ -97,20 +94,6 @@ void PlasmoidPackage::pathChanged() } } -void PlasmoidPackage::createNewWidgetBrowser(QWidget *parent) -{ -#ifndef PLASMA_NO_KNEWSTUFF - KNS3::DownloadDialog *knsDialog = m_knsDialog.data(); - if (!knsDialog) { - m_knsDialog = knsDialog = new KNS3::DownloadDialog("plasmoids.knsrc", parent); - connect(knsDialog, SIGNAL(accepted()), this, SIGNAL(newWidgetBrowserFinished())); - } - - knsDialog->show(); - knsDialog->raise(); -#endif -} - DataEnginePackage::DataEnginePackage(QObject *parent) : Plasma::PackageStructure(parent, QString("DataEngine")) {