D10855: Emit clicked when double click expires
Kai Uwe Broulik
noreply at phabricator.kde.org
Mon Feb 26 10:14:21 UTC 2018
broulik created this revision.
broulik added reviewers: Plasma, graesslin.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
broulik requested review of this revision.
REVISION SUMMARY
Press and hold isn't particularly intuitive. Instead, when clicked and the mouse isn't moved away, the click is emitted (and as such the menu is opened) when the double click timeout expires. Press and hold still works mostly for touch input but is merged with double click handling to simplify it.
TEST PLAN
Comes with unit test
- Double click to close still works
- Clicked, waited, menu opened
- Pressed and held, waited, menu opened
- With close on double click disabled behavior is as before, click just opens the menu
REPOSITORY
R129 Window Decoration Library
REVISION DETAIL
https://phabricator.kde.org/D10855
AFFECTED FILES
autotests/decorationbuttontest.cpp
src/decorationbutton.cpp
src/decorationbutton_p.h
To: broulik, #plasma, graesslin
Cc: plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180226/c326f6fa/attachment.html>
More information about the Plasma-devel
mailing list