Port kwintabbox KCM away from KNS3::DownloadDialog

This commit is contained in:
Alexander Lohnau 2021-02-08 17:38:25 +01:00
parent 309e278561
commit 2b721200fb

View file

@ -13,6 +13,7 @@
// Qt
#include <QtDBus>
#include <QDialog>
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QPushButton>
@ -30,7 +31,7 @@
#include <KPluginTrader>
#include <KTitleWidget>
#include <KServiceTypeTrader>
#include <KNewStuff3/KNS3/DownloadDialog>
#include <KNewStuff3/KNS3/QtQuickDialogWrapper>
// Plasma
#include <KPackage/Package>
#include <KPackage/PackageLoader>
@ -471,13 +472,9 @@ void KWinTabBoxConfig::configureEffectClicked()
void KWinTabBoxConfig::slotGHNS()
{
QPointer<KNS3::DownloadDialog> downloadDialog = new KNS3::DownloadDialog("kwinswitcher.knsrc", this);
if (downloadDialog->exec() == QDialog::Accepted) {
if (!downloadDialog->changedEntries().isEmpty()) {
initLayoutLists();
}
if (!KNS3::QtQuickDialogWrapper("kwinswitcher.knsrc").exec().isEmpty()) {
initLayoutLists();
}
delete downloadDialog;
}
} // namespace