Tag:
Branch:
Tree:
v22.12.2
frameworks
helm-link
master
portage-wilder
wilder
wilder-19.12
wilder-22.12
wilder-helm
wilder-rebase
poppler-21.06.1
v14.11.80
v14.11.90
v14.11.95
v14.11.97
v14.12.0
v14.12.1
v14.12.2
v14.12.3
v15.03.80
v15.03.90
v15.03.95
v15.03.97
v15.04.0
v15.04.1
v15.04.2
v15.04.3
v15.07.80
v15.07.90
v15.08.0
v15.08.1
v15.08.2
v15.08.3
v15.11.80
v15.11.90
v15.12.0
v15.12.1
v15.12.2
v15.12.3
v16.03.80
v16.03.90
v16.04.0
v16.04.1
v16.04.2
v16.04.3
v16.07.80
v16.07.90
v16.08.0
v16.08.1
v16.08.2
v16.08.3
v16.11.80
v16.11.90
v16.12.0
v16.12.1
v16.12.2
v16.12.3
v17.03.80
v17.03.90
v17.04.0
v17.04.1
v17.04.2
v17.04.3
v17.07.80
v17.07.90
v17.08.0
v17.08.1
v17.08.2
v17.08.3
v17.11.80
v17.11.90
v17.12.0
v17.12.1
v17.12.2
v17.12.3
v18.03.80
v18.03.90
v18.04.0
v18.04.1
v18.04.2
v18.04.3
v18.07.80
v18.07.90
v18.08.0
v18.08.1
v18.08.2
v18.08.3
v18.11.80
v18.11.90
v18.12.0
v18.12.1
v18.12.2
v18.12.3
v19.03.80
v19.03.90
v19.04.0
v19.04.1
v19.04.2
v19.04.3
v19.07.80
v19.07.90
v19.08.0
v19.08.1
v19.08.2
v19.08.3
v19.11.80
v19.11.90
v19.12.0
v19.12.1
v19.12.2
v19.12.3
v20.03.80
v20.03.90
v20.04.0
v20.04.1
v20.04.2
v20.04.3
v20.07.80
v20.07.90
v20.08.0
v20.08.1
v20.08.2
v20.08.3
v20.11.80
v20.11.90
v20.12.0
v20.12.1
v20.12.2
v20.12.3
v21.03.80
v21.03.90
v21.04.0
v21.04.1
v21.04.2
v21.04.3
v21.07.80
v21.07.90
v21.08.0
v21.08.1
v21.08.2
v21.08.3
v21.11.80
v21.11.90
v21.12.0
v21.12.1
v21.12.2
v21.12.3
v22.03.80
v22.04.0
v22.04.1
v22.04.2
v22.04.3
v22.07.80
v22.07.90
v22.08.0
v22.08.1
v22.08.2
v22.08.3
v22.11.80
v22.11.90
v22.12.0
v22.12.1
v22.12.2
v22.12.3
v23.03.80
v23.03.90
v23.04.0
v23.04.1
v23.04.2
v3.2.0
v3.2.1
v3.2.2
v3.2.3
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.4.0-beta1
v3.4.0-beta2
v3.4.1
v3.4.2
v3.4.3
v3.4.90
v3.4.91
v3.4.92
v3.5.0
v3.5.1
v3.5.10
v3.5.2
v3.5.3
v3.5.4
v3.5.5
v3.5.6
v3.5.7
v3.5.8
v3.5.9
v3.90.1
v3.91.0
v3.92.0
v3.93.0
v3.94.0
v3.95.0
v3.96.0
v3.97.0
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.5
v4.0.71
v4.0.80
v4.0.83
v4.0.98
v4.1.0
v4.1.1
v4.1.2
v4.1.3
v4.1.4
v4.1.80
v4.1.85
v4.1.96
v4.10.0
v4.10.1
v4.10.2
v4.10.3
v4.10.4
v4.10.5
v4.10.80
v4.10.90
v4.10.95
v4.10.97
v4.11.0
v4.11.1
v4.11.2
v4.11.3
v4.11.4
v4.11.5
v4.11.80
v4.11.90
v4.11.95
v4.11.97
v4.12.0
v4.12.1
v4.12.2
v4.12.3
v4.12.4
v4.12.5
v4.12.80
v4.12.90
v4.12.95
v4.12.97
v4.13.0
v4.13.1
v4.13.2
v4.13.3
v4.13.80
v4.13.90
v4.13.95
v4.13.97
v4.14.0
v4.14.1
v4.14.2
v4.14.3
v4.2.0
v4.2.1
v4.2.2
v4.2.3
v4.2.4
v4.2.85
v4.2.90
v4.2.95
v4.2.96
v4.2.98
v4.3.0
v4.3.1
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.80
v4.3.85
v4.3.90
v4.3.95
v4.3.98
v4.4.0
v4.4.1
v4.4.2
v4.4.3
v4.4.4
v4.4.5
v4.4.80
v4.4.85
v4.4.90
v4.4.92
v4.4.95
v4.5.0
v4.5.1
v4.5.2
v4.5.3
v4.5.4
v4.5.5
v4.5.80
v4.5.85
v4.5.90
v4.5.95
v4.6.0
v4.6.1
v4.6.5
v4.6.80
v4.6.90
v4.6.95
v4.7.0
v4.7.1
v4.7.2
v4.7.3
v4.7.4
v4.7.80
v4.7.90
v4.7.95
v4.7.97
v4.8.0
v4.8.1
v4.8.2
v4.8.3
v4.8.4
v4.8.5
v4.8.80
v4.8.90
v4.8.95
v4.8.97
v4.9.0
v4.9.1
v4.9.2
v4.9.3
v4.9.4
v4.9.5
v4.9.80
v4.9.90
v4.9.95
v4.9.97
v4.9.98
${ noResults }
6 Commits (v22.12.2)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
3304038d1d |
ToggleActions: Obey "don't show text" for a particular action toolbar setting
BUGS: 457322 |
4 years ago |
|
|
4afd214701 |
ToggleActionMenu::createWidget(): Do not crash if parent is not a QToolBar
There used to be a Q_ASSERT_X that was triggered when a widget was requested with something else than a QToolBar as parent widget. However, when the ToggleActionMenu is added to a QMenu, createWidget() is called with the QMenu as parent. This case was missed to be tested, but occurs when the toolbar is detached/moved by the user. |
5 years ago |
|
|
2f193a63de |
Convert license headers to SPDX
|
5 years ago |
|
|
87fa366c4a |
Adapt annotation toolbar tests to new toggleable quick annotation
|
5 years ago |
|
|
5a58d3bb8e |
Simplify ToggleActionMenu
* Remove the ImplicitDefaultAction intelligence, so ToggleActionMenu is not more than a KActionMenu with setDefaultAction(). * Instead, reset the default action when it gets removed from the menu(). This is done by filtering QActionEvent from menu(). * Add an autotest for ToggleActionMenu. This replaces prior efforts to fix problems in ToggleActionMenu in !245 and !254, following the discussion on the virtual meeting at 2021-02-26. |
5 years ago |
|
|
19d5dd8ec7 |
New part/ directory for okularpart sources from /, ui/, conf/
Source files are no longer separated by UI and non-UI and similar, but only by their build target. * ui/ -> part/ * Move all source files from conf/ to part/ * Keep config skeleton definitions in conf/, needed for the mobile target too * Move editdrawingtooldialogtest.h from conf/autotests/ to autotests/ * ui/data/icons/ -> icons/ * Move /part.cpp, /part.rc and similar files to part/ * Adapt include paths in source files * Adapt CMakeLists.txt files (in / and in subdirectories) * Adapt /Messages.sh |
5 years ago |
|
|
19d98d6a74 |
Run clang-format
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
|
6 years ago |
|
|
a23709b097 |
CI: Enable clazy range-loop
|
6 years ago |
|
|
c6d937ab0d |
Replace ToolAction by ToggleActionMenu
Summary:
This replaces ToolAction by a near-drop-in replacement named ToggleActionMenu. The new annotation toolbar already uses this (D15580).
Unlike ToolAction, ToggleActionMenu inherits from KActionMenu to be more flexible.
* Menu can be set from outside, not hard coded.
* Default action for toolbar button is controllable from outside. (Theoretically, the button could trigger //anything// now.)
* KActionMenu instead of KSelectAction:
- Pluggable in other menus, thus called “Menu”.
- Doesn’t make the actions exclusive, so //any// actions can be added to the menu.
* ImplicitDefaultAction mode can choose the default action of the toolbar buttons automatically, by looking for the first checked action in the menu.
Toolbar buttons use the default action //of// this menu, not this menu itself as action.
Because the default action is configurable now, D21622 and D21635 (where we tried to fine-tune ToolAction) become obsolete.
Screenshot:
Everything like before, here with mouse_selecttool added to Tools menu to show submenu capability.
{F6884228}
Test Plan:
ToolAction replacement and ImplicitDefaultAction mode:
* Open Okular and look at toolbar button -> has correct tool selected.
* Open a document.
* Look at toolbar button menu -> Correct menu entries (like before, with ToolAction).
* Select some selection tools through shortcuts and toolbar button -> behaves correctly.
Usage as submenu:
* Add ToggleActionMenu ("mouse_selecttool") to menubar (..../kxmlgui5/okular/part.rc) -> Submenu looks correctly, has no checkbox attached and so on...
Toolbar buttons:
* Add diverse other actions to the menu -> still works as before.
* Add actions when toolbar buttons are already created -> actions are added to existing buttons.
* setDefaultAction() to some completely unrelated action. -> ToggleActionMenu does not get confused.
Reviewers: simgunz
Reviewed By: simgunz
Subscribers: aacid, ngraham, simgunz, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D21971
|
6 years ago |