make the add widgets dialog non-modal

svn path=/trunk/KDE/kdelibs/; revision=969419
This commit is contained in:
Aaron J. Seigo 2009-05-18 10:40:30 +00:00
parent 88b5064525
commit 0b8924ce20
2 changed files with 9 additions and 4 deletions

View File

@ -79,12 +79,14 @@ void PlasmoidPackage::pathChanged()
void PlasmoidPackage::createNewWidgetBrowser(QWidget *parent)
{
KNS::Engine engine(0);
if (engine.init("plasmoids.knsrc")) {
//FIXME: this should not be modal, but requires fixes in knewstuff2 first
KNS::Entry::List entries = engine.downloadDialogModal(parent);
KNS::Engine *engine = new KNS::Engine(parent);
if (engine->init("plasmoids.knsrc")) {
engine->downloadDialog(this, SLOT(widgetBrowserFinished()));
}
}
void PlasmoidPackage::widgetBrowserFinished()
{
emit newWidgetBrowserFinished();
}

View File

@ -38,6 +38,9 @@ public:
protected:
void pathChanged();
protected Q_SLOTS:
void widgetBrowserFinished();
};
class ThemePackage : public PackageStructure