D25212: Move the shortcut management in the settings object

David Edmundson noreply at phabricator.kde.org
Tue Nov 12 10:02:02 GMT 2019


davidedmundson added inline comments.

INLINE COMMENTS

> kcm.cpp:198
> -            // the keys sequence
> -            if (!KGlobalAccel::promptStealShortcutSystemwide(this, conflicting, sequence)) {
> -                return false;

This part appears to have gone?

> kscreensaversettings.cpp:46
> +    m_lockAction->setText(i18n("Lock Session"));
> +    KGlobalAccel::self()->setShortcut(m_lockAction, defaultShortcuts());
> +

given we have defined the defaults at a kconfigskeleton level should we just call ->shortcut() here?

> kscreensaversettings.cpp:48
> +
> +    addItem(new KPropertySkeletonItem(this, "shortcut", defaultShortcuts().first()), QStringLiteral("lockscreenShortcut"));
> +}

Could we handle the alternative shortcut by using a second property?

REPOSITORY
  R133 KScreenLocker

REVISION DETAIL
  https://phabricator.kde.org/D25212

To: ervin, #plasma, davidedmundson, bport, crossi, mart
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191112/52123047/attachment.html>


More information about the Plasma-devel mailing list