Commit graph

12 commits

Author SHA1 Message Date
Albert Astals Cid
8941e43488 Port away from more QLinkedLists
QLinkedList is gone from Qt6

The 1:1 port is std::list but we don't need iterator stability on
removal/insertion so just port to QList (one case to std::vector since
QList needs a copy constructor)
2022-03-22 00:11:55 +01:00
Simone Gaiarin
230a68d537 Uncheck mouse mode action when annotation tool selected
When the annotation is unchecked the previous mouse mode is restored.

The slot slotMouseNormalToggled is changed back to its original version
of slotSetMouseNormal given that we needed to pass the checked state
only to detach the annotations, and we do it in the lambda now.

BUG: 398108

BUG: 437377

FIXED-IN: 21.08
2021-06-19 14:12:19 +00:00
Alexander Lohnau
2f193a63de Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
Simone Gaiarin
6b61909ac5 Select quick tool directly without proxying a builtin annotation 2021-05-10 05:36:29 +00:00
Simone Gaiarin
3f18367efd Refactor code for selecting annotation tool 2021-05-10 05:36:29 +00:00
Simone Gaiarin
e000489268 Refactor selection of last used annotation tool 2021-05-10 05:36:29 +00:00
Albert Astals Cid
ff5f4cbc45 Open the signed document on the page with the new signature
It's still not perfect because it probably won't show the signature
since signatures "usually" go to the bottom of the page and we're only
focusing on that page, which means the beginning which depending on zoom
settings may very well not include the signature, but at least it's
closer
2021-04-14 22:05:38 +02:00
Albert Astals Cid
49f784ecf9 When signing save to a new file, not over the current one 2020-12-13 21:31:14 +00:00
Katarina Behrens
20b34d00c9 Make clang-tidy happier 2020-12-13 21:31:14 +00:00
Katarina Behrens
339ce239f5 Draw an initial rectangle where to place the signature 2020-12-13 21:31:14 +00:00
Albert Astals Cid
023976ccfd Show annotation tip when selecting the tool in continuous mode
BUGS: 426782
2020-11-26 09:12:21 +00:00
David Hurka
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
2020-11-18 19:32:56 +00:00
Renamed from ui/pageviewannotator.h (Browse further)