okular/ui
Nate Graham c792444550 Use a more conventional dropdown menu style instead of press-and-hold
Summary:
Currently, `ToolAction` menus (of which there is only one, the selection tool menu)
activate the current tool on click, and require a click-and-hold to choose a new tool.
This is a somewhat unfamiliar user interface that I myself struggled with when initially
encountering it, and I've encountered user complaints about it as well.

This patch adjusts the behavior so that clicking on the arrow on the right side of the
button will open the pop-up and allow choosing another tool, which is a more common
method of implementing the feature. The patch also adjusts the tooltop accordingly.

Test Plan: {F6874466, size=full}

Reviewers: #okular, #vdg, ndavis

Reviewed By: #vdg, ndavis

Subscribers: ndavis, abetts, filipf, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D21622
2019-06-06 11:40:02 -06:00
..
data Support setting text color for typewriter annotations 2018-10-04 20:02:55 +02:00
annotationmodel.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
annotationmodel.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
annotationpopup.cpp clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
annotationpopup.h Simplify AnnotPagePair 2019-01-10 00:40:23 +01:00
annotationpropertiesdialog.cpp Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
annotationpropertiesdialog.h Port away from signal/slot keyword 2016-07-11 19:34:08 +02:00
annotationproxymodels.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
annotationproxymodels.h Fix minor EBN issues 2018-08-17 21:05:01 +03:00
annotationtools.cpp clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
annotationtools.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
annotationwidgets.cpp Fix narrowing conversion in LineAnnotationWidget::endStyleIcon 2019-06-02 22:07:28 +02:00
annotationwidgets.h Add icons for line annotation arrow styles to combo box 2019-06-01 17:38:23 +02:00
annotwindow.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
annotwindow.h Fix some clazy warning 2019-05-27 08:02:57 +02:00
bookmarklist.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
bookmarklist.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
certificateviewer.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
certificateviewer.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
CMakeLists.txt clean up the CMakeLists.txt files from the auto* stuff 2006-07-07 15:08:46 +00:00
debug_ui.cpp Only show warning messages by default 2017-01-16 18:41:33 +01:00
debug_ui.h Fix minor EBN issues 2018-08-17 21:05:01 +03:00
drawingtoolactions.cpp Fixes suggested by Clazy 2016-10-29 16:33:05 +02:00
drawingtoolactions.h Port away from signal/slot keyword 2016-07-11 19:34:08 +02:00
embeddedfilesdialog.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
embeddedfilesdialog.h Merge remote-tracking branch 'origin/master' into frameworks 2016-10-29 11:13:24 +02:00
fileprinterpreview.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
fileprinterpreview.h Fix minor EBN issues 2018-10-18 22:04:49 +03:00
findbar.cpp Implemented find function from console 2019-02-13 23:59:52 +01:00
findbar.h Implemented find function from console 2019-02-13 23:59:52 +01:00
formwidgets.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
formwidgets.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
guiutils.cpp Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
guiutils.h Merge remote-tracking branch 'origin/master' into frameworks 2016-10-29 11:13:24 +02:00
ktreeviewsearchline.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
ktreeviewsearchline.h clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
latexrenderer.cpp Fix minor EBN issues 2018-08-31 12:23:45 +03:00
latexrenderer.h delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
layers.cpp Port away from deprecated KConfig API 2016-07-24 22:43:41 +02:00
layers.h Fix forward declaration 2019-06-03 08:48:32 +02:00
magnifierview.cpp Fix minor EBN issues 2018-08-17 21:05:01 +03:00
magnifierview.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
minibar.cpp Use logically correct icon for direction arrows 2019-03-13 19:24:42 +05:30
minibar.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
okmenutitle.cpp Fix menu titles not showing up 2016-12-28 17:05:46 +01:00
okmenutitle.h Fix menu titles not showing up 2016-12-28 17:05:46 +01:00
pageitemdelegate.cpp Replace obsolete typedefs 2016-07-11 23:24:47 +02:00
pageitemdelegate.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
pagepainter.cpp Add line annotation ending arrows for non PDF documents 2019-06-01 17:28:48 +02:00
pagepainter.h Add line annotation ending arrows for non PDF documents 2019-06-01 17:28:48 +02:00
pagesizelabel.cpp Use moc include style dictated by automoc 2014-08-09 00:21:03 +02:00
pagesizelabel.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
pageview.cpp Regularize tool names 2019-06-06 09:12:14 -06:00
pageview.h Fix forward declaration 2019-06-03 08:48:32 +02:00
pageviewannotator.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
pageviewannotator.h Port away from signal/slot keyword 2016-07-11 19:34:08 +02:00
pageviewmouseannotation.cpp Fix crash due to dangling pointer in MouseAnnotation 2018-02-25 19:11:17 +01:00
pageviewmouseannotation.h Fix crash due to dangling pointer in MouseAnnotation 2018-02-25 19:11:17 +01:00
pageviewutils.cpp Use not deprecated methods 2019-03-13 06:58:11 +01:00
pageviewutils.h Fix forward declaration 2019-06-03 08:48:32 +02:00
presentationsearchbar.cpp Port away from deprecated setClearButtonShown 2018-10-28 12:49:50 +02:00
presentationsearchbar.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
presentationwidget.cpp Fix some clazy warning 2019-05-27 08:02:57 +02:00
presentationwidget.h Presentation: optionally go to prev. page when touching left half of the page 2019-03-11 21:09:30 +01:00
priorities.h Remove the concept of observer/view id 2013-02-24 23:01:02 +01:00
propertiesdialog.cpp clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
propertiesdialog.h Fix forward declaration 2019-06-03 08:48:32 +02:00
revisionviewer.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
revisionviewer.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
searchlineedit.cpp Fix minor typos 2018-11-14 21:12:15 +02:00
searchlineedit.h Allow to disable automatic search while typing 2017-03-14 00:31:42 +01:00
searchwidget.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
searchwidget.h Fix minor typos 2018-11-14 21:12:15 +02:00
side_reviews.cpp Add buttons to collapse and expand all elements 2019-04-01 00:16:09 +02:00
side_reviews.h Add buttons to collapse and expand all elements 2019-04-01 00:16:09 +02:00
sidebar.cpp Use not deprecated methods 2019-03-13 06:58:11 +01:00
sidebar.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
signatureguiutils.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signatureguiutils.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturemodel.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturemodel.h Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturepanel.cpp Implement digital signature support for PDF 2019-01-10 23:13:54 +01:00
signaturepanel.h Fix forward declaration 2019-06-03 08:48:32 +02:00
signaturepropertiesdialog.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
signaturepropertiesdialog.h Fix forward declaration 2019-06-03 08:48:32 +02:00
snapshottaker.cpp Fix minor EBN issues 2018-08-17 21:05:01 +03:00
snapshottaker.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
thumbnaillist.cpp Fix minor typos 2019-01-11 09:09:34 +02:00
thumbnaillist.h Remove deprecated method 2019-02-27 07:50:47 +01:00
toc.cpp Add placeholders for the search lines 2019-01-21 18:44:23 +02:00
toc.h Fix forward declaration 2019-06-03 08:48:32 +02:00
tocmodel.cpp delete copy constructor and assignment operator of some internal classes 2019-01-10 00:28:49 +01:00
tocmodel.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
toolaction.cpp Use a more conventional dropdown menu style instead of press-and-hold 2019-06-06 11:40:02 -06:00
toolaction.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
tts.cpp clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
tts.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
url_utils.h ui: Fix build without implicit cast to/from ascii 2016-07-11 22:05:18 +02:00
videowidget.cpp Fix Presentation Mode VideoWidget sizing 2018-04-02 21:21:09 +02:00
videowidget.h Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00