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
Education
KTouch
Commits
a619caa2
Commit
a619caa2
authored
Jul 26, 2022
by
Nicolas Fella
Browse files
Fix opening keyboard KCM
The install location of the KCM changed, adapt to the new id
parent
aebaa840
Pipeline
#209112
passed with stage
in 55 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/ktouchcontext.cpp
View file @
a619caa2
...
...
@@ -35,7 +35,7 @@
const
QString
keyboardKCMName
=
QStringLiteral
(
"kcm_keyboard"
);
const
QString
keyboardKCMName
=
QStringLiteral
(
"
plasma/kcms/systemsettings/
kcm_keyboard"
);
KTouchContext
::
KTouchContext
(
KMainWindow
*
mainWindow
,
QQuickView
*
view
,
QObject
*
parent
)
:
QObject
(
parent
),
...
...
@@ -146,7 +146,7 @@ void KTouchContext::showKeyboardKCM()
QPointer
<
KCMultiDialog
>
kcm
=
new
KCMultiDialog
(
m_mainWindow
);
kcm
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Configure Keyboard"
));
kcm
->
addModule
(
keyboardKCMName
);
kcm
->
addModule
(
KPluginMetaData
(
keyboardKCMName
)
)
;
kcm
->
exec
();
delete
kcm
;
...
...
@@ -184,12 +184,5 @@ void KTouchContext::init()
bool
KTouchContext
::
testKCMAvailibility
(
const
QString
&
name
)
{
KService
::
Ptr
service
=
KService
::
serviceByStorageId
(
name
+
".desktop"
);
if
(
!
service
)
{
return
false
;
}
return
service
->
hasServiceType
(
QStringLiteral
(
"KCModule"
))
&&
!
service
->
noDisplay
();
return
KPluginMetaData
(
name
).
isValid
();
}
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