[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: D8827: experimental support for auto mnemonics
From: Kai Uwe Broulik <noreply () phabricator ! kde ! org>
Date: 2017-11-29 13:26:35
Message-ID: 20171129132635.98443.38FA391434AB4A75 () phabricator ! kde ! org
[Download RAW message or body]
broulik added a comment.
A shortcut is registered by the `Shortcut` item by doing
QGuiApplicationPrivate::instance()->shortcutMap.addShortcut(this, \
shortcut.keySequence, context, *ctxMatcher());
`QShortcut` is in widgets and also another QObject. I don't see a way to do that \
using public API. We could have a global `Shortcut` that registers everythign and \
propagates it along but that would make things utterly complicated and ugly.
REPOSITORY
R858 Qt Quick Controls 2: Desktop Style
REVISION DETAIL
https://phabricator.kde.org/D8827
To: mart, #plasma
Cc: hein, broulik, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, \
jensreuterberg, abetts, sebas, apol, mart
[Attachment #3 (unknown)]
<table><tr><td style="">broulik added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: \
right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: \
#F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: \
inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D8827" rel="noreferrer">View \
Revision</a></tr></table><br /><div><div><p>A shortcut is registered by the <tt \
style="background: #ebebeb; font-size: 13px;">Shortcut</tt> item by doing</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" \
data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px \
"Menlo", "Consolas", "Monaco", monospace; padding: \
12px; margin: 0; background: rgba(71, 87, 120, \
0.08);">QGuiApplicationPrivate::instance()->shortcutMap.addShortcut(this, \
shortcut.keySequence, context, *ctxMatcher());</pre></div>
<p><tt style="background: #ebebeb; font-size: 13px;">QShortcut</tt> is in widgets and \
also another QObject. I don't see a way to do that using public API.<br /> We \
could have a global <tt style="background: #ebebeb; font-size: 13px;">Shortcut</tt> \
that registers everythign and propagates it along but that would make things utterly \
complicated and ugly.</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R858 Qt Quick Controls 2: Desktop \
Style</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D8827" \
rel="noreferrer">https://phabricator.kde.org/D8827</a></div></div><br \
/><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>hein, broulik, \
plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, \
sebas, apol, mart<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic