Commit 4e26aa55 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to KNewStuff3/KNS3/QtQuickDialogWrapper

parent 0b5cf460
......@@ -13,7 +13,7 @@
#include <KConfigGroup>
#include <KDirWatch>
#include <KLocalizedString>
#include <KNS3/DownloadDialog>
#include <KNewStuff3/KNS3/QtQuickDialogWrapper>
#include <KSharedConfig>
#include <KToggleAction>
#include <QAction>
......@@ -74,17 +74,11 @@ public:
{
removeActions();
themes.clear();
if (downloadThemesDialog) {
delete downloadThemesDialog.data();
}
}
void slotDownloadHeaderThemes()
{
if (!downloadThemesDialog) {
downloadThemesDialog = new KNS3::DownloadDialog(downloadConfigFileName);
}
downloadThemesDialog.data()->show();
KNS3::QtQuickDialogWrapper(downloadConfigFileName).exec();
}
void directoryChanged()
......@@ -267,7 +261,6 @@ public:
QAction *separatorAction = nullptr;
QAction *downloadThemesAction = nullptr;
QPointer<KNS3::DownloadDialog> downloadThemesDialog;
ThemeManager *const q;
};
......
Markdown is supported
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