Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
205fd169
Commit
205fd169
authored
Mar 09, 2022
by
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
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/kcmkwin/kwinscripts/CMakeLists.txt
View file @
205fd169
...
...
@@ -18,7 +18,7 @@ target_link_libraries(kcm_kwin_scripts
KF5::I18n
KF5::KCMUtils
KF5::NewStuff
KF5::NewStuff
Widgets
KF5::Package
)
...
...
src/kcmkwin/kwinscripts/module.cpp
View file @
205fd169
...
...
@@ -25,7 +25,7 @@
#include
<KPackage/PackageStructure>
#include
<KPluginFactory>
#include
<KN
ewStuff3/KNS3
/Button>
#include
<KN
SWidgets
/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
,
&
KNS
3
::
Button
::
dialogFinished
,
this
,
[
this
](
const
KNS
3
::
Entry
::
List
&
changedEntries
)
{
connect
(
ui
->
ghnsButton
,
&
KNS
Widgets
::
Button
::
dialogFinished
,
this
,
[
this
](
const
KNS
Core
::
Entry
::
List
&
changedEntries
)
{
if
(
!
changedEntries
.
isEmpty
())
{
ui
->
scriptSelector
->
clear
();
updateListViewContents
();
...
...
src/kcmkwin/kwinscripts/module.ui
View file @
205fd169
...
...
@@ -62,7 +62,7 @@
</widget>
</item>
<item>
<widget
class=
"KNS
3
::Button"
name=
"ghnsButton"
>
<widget
class=
"KNS
Widgets
::Button"
name=
"ghnsButton"
>
<property
name=
"text"
>
<string>
Get New Scripts...
</string>
</property>
...
...
@@ -80,9 +80,9 @@
<container>
1
</container>
</customwidget>
<customwidget>
<class>
KNS
3
::Button
</class>
<class>
KNS
Widgets
::Button
</class>
<extends>
QPushButton
</extends>
<header>
KNS
3
/Button
</header>
<header>
KNS
Widgets
/Button
</header>
</customwidget>
<customwidget>
<class>
KMessageWidget
</class>
...
...
src/kcmkwin/kwintabbox/CMakeLists.txt
View file @
205fd169
...
...
@@ -26,7 +26,7 @@ target_link_libraries(kcm_kwintabbox
KF5::GlobalAccel
KF5::I18n
KF5::KCMUtils
KF5::NewStuff
KF5::NewStuff
Widgets
KF5::Package
KF5::Service
...
...
src/kcmkwin/kwintabbox/main.cpp
View file @
205fd169
...
...
@@ -27,7 +27,7 @@
#include
<KLocalizedString>
#include
<KPluginFactory>
#include
<KTitleWidget>
#include
<KNS
3
/Button>
#include
<KNS
Widgets
/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"
));
KNS
3
::
Button
*
ghnsButton
=
new
KNS
3
::
Button
(
i18n
(
"Get New Task Switchers..."
),
QStringLiteral
(
"kwinswitcher.knsrc"
),
this
);
connect
(
ghnsButton
,
&
KNS
3
::
Button
::
dialogFinished
,
this
,
[
this
]
(
auto
changedEntries
)
{
KNS
Widgets
::
Button
*
ghnsButton
=
new
KNS
Widgets
::
Button
(
i18n
(
"Get New Task Switchers..."
),
QStringLiteral
(
"kwinswitcher.knsrc"
),
this
);
connect
(
ghnsButton
,
&
KNS
Widgets
::
Button
::
dialogFinished
,
this
,
[
this
]
(
auto
changedEntries
)
{
if
(
!
changedEntries
.
isEmpty
())
{
initLayoutLists
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment