Commit 205fd169 authored by Volker Krause's avatar Volker Krause
Browse files

Port from KNS3::Button to KNSWidgets::Button

The former isn't available in KF6 anymore.
parent 1980dd0e
Pipeline #147549 passed with stage
in 35 minutes and 33 seconds
......@@ -18,7 +18,7 @@ target_link_libraries(kcm_kwin_scripts
KF5::I18n
KF5::KCMUtils
KF5::NewStuff
KF5::NewStuffWidgets
KF5::Package
)
......
......@@ -25,7 +25,7 @@
#include <KPackage/PackageStructure>
#include <KPluginFactory>
#include <KNewStuff3/KNS3/Button>
#include <KNSWidgets/Button>
#include "kwinscriptsdata.h"
#include "config-kwin.h"
......@@ -53,7 +53,7 @@ Module::Module(QWidget *parent, const QVariantList &args) :
ui->messageWidget->hide();
ui->ghnsButton->setConfigFile(QStringLiteral("kwinscripts.knsrc"));
connect(ui->ghnsButton, &KNS3::Button::dialogFinished, this, [this](const KNS3::Entry::List &changedEntries) {
connect(ui->ghnsButton, &KNSWidgets::Button::dialogFinished, this, [this](const KNSCore::Entry::List &changedEntries) {
if (!changedEntries.isEmpty()) {
ui->scriptSelector->clear();
updateListViewContents();
......
......@@ -62,7 +62,7 @@
</widget>
</item>
<item>
<widget class="KNS3::Button" name="ghnsButton">
<widget class="KNSWidgets::Button" name="ghnsButton">
<property name="text">
<string>Get New Scripts...</string>
</property>
......@@ -80,9 +80,9 @@
<container>1</container>
</customwidget>
<customwidget>
<class>KNS3::Button</class>
<class>KNSWidgets::Button</class>
<extends>QPushButton</extends>
<header>KNS3/Button</header>
<header>KNSWidgets/Button</header>
</customwidget>
<customwidget>
<class>KMessageWidget</class>
......
......@@ -26,7 +26,7 @@ target_link_libraries(kcm_kwintabbox
KF5::GlobalAccel
KF5::I18n
KF5::KCMUtils
KF5::NewStuff
KF5::NewStuffWidgets
KF5::Package
KF5::Service
......
......@@ -27,7 +27,7 @@
#include <KLocalizedString>
#include <KPluginFactory>
#include <KTitleWidget>
#include <KNS3/Button>
#include <KNSWidgets/Button>
// Plasma
#include <KPackage/Package>
#include <KPackage/PackageLoader>
......@@ -58,8 +58,8 @@ KWinTabBoxConfig::KWinTabBoxConfig(QWidget* parent, const QVariantList& args)
tabWidget->addTab(m_primaryTabBoxUi, i18n("Main"));
tabWidget->addTab(m_alternativeTabBoxUi, i18n("Alternative"));
KNS3::Button *ghnsButton = new KNS3::Button(i18n("Get New Task Switchers..."), QStringLiteral("kwinswitcher.knsrc"), this);
connect(ghnsButton, &KNS3::Button::dialogFinished, this, [this] (auto changedEntries) {
KNSWidgets::Button *ghnsButton = new KNSWidgets::Button(i18n("Get New Task Switchers..."), QStringLiteral("kwinswitcher.knsrc"), this);
connect(ghnsButton, &KNSWidgets::Button::dialogFinished, this, [this] (auto changedEntries) {
if (!changedEntries.isEmpty()) {
initLayoutLists();
}
......
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