Commit graph

2780 commits

Author SHA1 Message Date
Sune Vuorela 653465f165 Newer clazy: QList changes 2024-03-04 16:49:55 +01:00
Fushan Wen 677a2467ba Use QStringView more to reduce allocations 2024-02-22 23:20:40 +00:00
Sune Vuorela 8a6d86ab19 Better user strings for signature settings
CCBUG: 481262
2024-02-19 21:39:02 +00:00
l10n daemon script df3bfa005d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-18 01:13:47 +00:00
Heiko Becker 3f042a7136 GIT_SILENT Update Appstream for new release
(cherry picked from commit 22481a6a89)
2024-02-16 00:56:02 +01:00
l10n daemon script 9d8e8c90ef SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-14 01:13:45 +00:00
Heiko Becker 4f215109fc GIT_SILENT Update Appstream for new release
(cherry picked from commit f98272f40f)
2024-02-10 00:41:17 +01:00
Sune Vuorela 5870b4e3b9 Remove plucker generator
It is undermaintained, it is hard to find documents for it, no tests,
doesn't look like it has seen any fuzzing test and looks like it trusts
the input is good.
2024-02-08 23:32:11 +00:00
Sune Vuorela 2e008d437c Simplify textentity memory management
After trying to measure the effect of switching TinyTextEntity from a
custom SBO string type to just QString and getting a barely measurable
gain, TinyTextEntity kind of looked like TextEntity, so merge those two.

Also reduce the amount of new/deletes around TextEntities

Implement a string pool for some tiny strings, and various memory optimizations
2024-02-07 14:07:08 +00:00
l10n daemon script 73dc2f4d93 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-04 01:13:00 +00:00
l10n daemon script 87c4cd8876 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-03 01:13:43 +00:00
l10n daemon script d614c09a25 GIT_SILENT made messages (after extraction) 2024-02-03 00:37:23 +00:00
l10n daemon script 882cebf811 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-02 01:12:49 +00:00
Sune Vuorela cac31c3aad DVI: use actual page size 2024-01-26 12:19:28 +00:00
Sune Vuorela a218085bd6 Better fix for crash-in-pdf-generation
Check if abort is requested, rather than the side effects of it.
Also remember to unlock userMutex
2024-01-26 13:09:58 +01:00
Sune Vuorela 77f810f013 Fix crash in pdf generator
There is a theoretical chance that doCloseDocument has been called while
text extraction is running. There has at least been unit test crashes
here. Try guard that case.
2024-01-15 10:28:33 +00:00
Sune Vuorela a0031b4a05 Remove leftover desktop files. The generators is now with json files 2024-01-09 21:57:05 +00:00
Sune Vuorela dc88b5873a Don't put slashes in plugin prefix
It complicates stuff further down the line and we don't gain much for
it, so work with the rest of the stack rather than work around it.

One of the complications is that if bindir contains both plugins and executable, we will have okular and okular/ in the same folder and that doesn't really work.
2024-01-09 14:12:45 +00:00
l10n daemon script 651098cf5a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-01-08 02:08:32 +00:00
l10n daemon script ee54715d81 GIT_SILENT made messages (after extraction) 2024-01-08 01:35:10 +00:00
l10n daemon script 867f18a700 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-01-04 02:07:40 +00:00
l10n daemon script a641170dc8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-01-02 02:03:31 +00:00
Sune Vuorela 6cc8968ee8 Port from deprecated QVariant type 2023-12-21 12:58:31 +00:00
Sune Vuorela 8532d24a73 Port away from deprecated setFontFamily 2023-12-19 12:58:00 +00:00
Sune Vuorela 792425fc77 s/qAsConst/std::as_const/
We now definitely has std::as_const available and Qt has started nagging
about converting to std::as_const.

Implementation is the same for both functions, and qAsConst was a
stop-gap measure until std::as_const was sufficiently available.
2023-12-19 11:46:24 +00:00
Sune Vuorela 5ac1eb0ad6 clazy: make qregularexpression static const 2023-12-18 22:56:22 +00:00
Sune Vuorela a0d40ab0bc Remove Id from json files. Everything complains and ignores 2023-12-18 22:56:22 +00:00
Carl Schwan 8362bd052f Fix compilation of comicbook generator
For Qt6, static libraries need POSITION_INDEPENDENT_CODE to be set.
2023-12-18 22:56:22 +00:00
Sune Vuorela c69e79e67a Do something with text generator. It feels not fully okay, but.. 2023-12-18 22:56:22 +00:00
Sune Vuorela 601e03f973 Fix comicbook build 2023-12-18 22:56:22 +00:00
Sune Vuorela 4865af4b0e Build poppler generator. We still need to take an extra look at the changes in memory managing 2023-12-18 22:56:22 +00:00
Carl Schwan 2f05100dc2 Adapt cmake for library name change for kexiv2 and plasma-activities 2023-12-18 22:56:22 +00:00
Nicolas Fella c29f0fec54 Switch to kf6 2023-12-18 22:56:22 +00:00
Nicolas Fella 30eca3dd96 Don't install kservice files for KF6
They are not relevant there
2023-12-18 22:56:22 +00:00
Sune Vuorela f3be4f1cd3 Hardcode Qt6 2023-12-18 22:56:22 +00:00
Nicolas Fella b1c904bda3 Don't hardcode Qt5
Prepares for using Qt6
2023-12-18 22:56:22 +00:00
Sune Vuorela a9717a8e5f Use CI environment for clang/clazy
In order to be able to also do this with Qt6 we can't currently rely on
'random distro' to be able to give us an environment sufficient for
running clang and clazy, so use the CI system setup instead

A side effect is that we get a newer clazy and clang-tidy and thus is a
few more issues to either ignore or fix.

Also, ask ninja to continue as long as possible rather than stop at
first error to be able to get succes in as few runs as possible
2023-12-15 09:39:03 +00:00
l10n daemon script 20a5bb2b5c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-12-14 01:15:39 +00:00
Sune Vuorela 5ffa15d021 Port mobipocket code from QRegExp 2023-12-12 20:55:50 +00:00
Sune Vuorela 96c3ce61ef Don't crash in dvi backend
If you have the correct fonts installed, the dvi backend seems to work with and without this patch.

If you don't have the correct fonts installed, the dvi backend crashes without this patch. With this patch, it shows empty documents and a KMessageWidget telling kind of useless messages that might mean "no fonts". But that's a different fix.
2023-12-12 20:44:05 +00:00
Sune Vuorela 40e4c72121 Fix memory handling in xps generator
In case of errors, files and documents could get leaked. Sprinkle
smartpointers over it.
2023-12-08 13:50:34 +01:00
Sune Vuorela cb935b5724 Port epub from QRegExp to QRegularExpression 2023-12-07 16:43:25 +01:00
Albert Astals Cid d1838d3a97 markdown: Don't try re-converting a document if there's none
BUGS: 478213
2023-12-07 15:28:28 +00:00
Sune Vuorela f4062f5e54 Fix theoretical crash in qunpluck image reader
If a malformed image has no rows or columns, we can end up dereferincing
a nullptr.
Error out early.
2023-12-07 15:16:34 +00:00
Sune Vuorela e705b9fac9 Fix deprecation in tiff generator 2023-12-07 14:52:11 +00:00
Sune Vuorela fbedf4a82a Forward declaring QStringList is annoying on Qt6 porting, and most of them aren't needed so drop it 2023-12-07 14:29:02 +00:00
Sune Vuorela 3e1842a923 Show an icon depending on the storage location of the signature 2023-12-07 12:15:03 +00:00
Sune Vuorela 32c804296a Get rid of QStringRef 2023-12-06 19:12:43 +00:00
Heiko Becker 4696cb4a91 GIT_SILENT Update Appstream for new release
(cherry picked from commit 06578a35b7)
2023-11-30 18:02:31 +01:00
l10n daemon script a9a77cd214 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-26 01:16:10 +00:00
l10n daemon script 1641c47234 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-07 02:06:23 +00:00
l10n daemon script da7c7ee957 GIT_SILENT made messages (after extraction) 2023-11-07 01:13:10 +00:00
l10n daemon script 25e7d3fd6f GIT_SILENT made messages (after extraction) 2023-11-05 12:27:13 +00:00
l10n daemon script c16357bebf SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-04 11:46:37 +00:00
Heiko Becker b370320bbe GIT_SILENT Update Appstream for new release
(cherry picked from commit 22b81f84bd)
2023-11-04 12:00:51 +01:00
l10n daemon script d624d72d22 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-10-28 01:22:19 +00:00
l10n daemon script 712456bc92 GIT_SILENT made messages (after extraction) 2023-10-27 00:41:04 +00:00
l10n daemon script e11183bfb9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-10-20 01:19:41 +00:00
Heiko Becker f844409a14 GIT_SILENT Update Appstream for new release
(cherry picked from commit 5c8e3c6b62)
2023-10-07 17:25:59 +02:00
Albert Astals Cid a998e0ca17 markdown: Fix rendering with discount3
These defines for no longer supported version of discount2 where
breaking discount3

BUGS: 475198
2023-10-05 21:35:23 +00:00
Kevin Ottens 351cdf2388 When printing respect the overprint preview settings
Mainly two cases here:
  1. printing on Windows or force rasterization enabled, this goes
     through rasterization anyway, so just pass on the information
     as a render hint;
  2. printing on Linux, this goes through poppler's PSConverter, then we
     pass on the information only if we know the output won't be a PDF
     (otherwise we assume the consumer of this PDF will know what to do
     of the overprint information).

The latter case depends on new API introduced in Poppler 23.09.
2023-09-20 21:57:48 +00:00
l10n daemon script 0b3f35a5f6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-09-14 01:34:36 +00:00
Nicolas Fella d4a344a189 Port away from deprecated KPluginLoader 2023-09-11 19:29:44 +00:00
Nicolas Fella b5303248f0 Add missing includes 2023-09-11 16:47:17 +02:00
Heiko Becker 02a23c5f52 GIT_SILENT Update Appstream for new release
(cherry picked from commit 0de81d092e)
2023-09-09 10:34:08 +02:00
Heiko Becker 044c2e3f08 GIT_SILENT Update Appstream for new release
(cherry picked from commit 0849af5fe8)
2023-08-16 22:56:30 +02:00
Jeremy Whiting 4ae7d68857 Fix more Qt deprecations.
Mostly QPrinter::Orientation -> QPageLayout::Orientation and
a few things about sizes.
2023-08-10 23:12:39 +00:00
Sune Vuorela 88fc4032ac Random collection of cppcheck fixes
- missing consts
 - shadowing of variable names
 - superflous code
 - tighter scoping of some variables
 and other such bits
2023-08-10 22:47:57 +00:00
l10n daemon script 54a72d01ad SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-08-07 01:48:35 +00:00
l10n daemon script 22c6f90398 GIT_SILENT made messages (after extraction) 2023-08-07 00:45:24 +00:00
Sune Vuorela 7e3497bb54 Fix markdown converter with libdiscount 3 2023-08-02 21:58:48 +00:00
l10n daemon script eb676c23fb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-07-31 01:38:24 +00:00
l10n daemon script a9f51e4490 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-07-30 01:37:06 +00:00
Jeremy Whiting cc80b3d0e3 Convert okular_part.desktop to okular_part.json and use it.
Also fixed the deprecation warning in the generator plugins.
Thanks to Alexander Lohnau
2023-07-23 17:16:07 +00:00
Jeremy Whiting d491dacf37 Move xps generator away from deprecated QtXml classes.
Move XpsHandler bits into XpsPage to parse xml using new classes.
Use QXmlStreamReader instead of QXmlInputSource.
Use QXmlStreamAttributes instead of deprecated QXmlAttributes.
Convert QStringRef return values to string as needed.
2023-07-21 19:20:41 +00:00
Heiko Becker c593aa5866 GIT_SILENT Update Appstream for new release
(cherry picked from commit 4b90f55cb6)
2023-06-30 00:22:01 +02:00
Kevin Ottens 1487dc4ad3 Add a way to enable overprint preview for rendering PDF
This is disabled by default.
2023-06-28 05:34:22 +00:00
Sune Vuorela d1133be5fc Allow open certificate with kleopatra
If the active backend is gnupg (e.g. if only compiled-in backend, or later when configurabitily thru okular has been merged), we can offer to view and edit certificates with Kleopatra (KDE's certificate manager)
2023-06-25 22:41:22 +00:00
l10n daemon script 3fce995a78 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-06-23 01:42:59 +00:00
Sune Vuorela 8ee9ed181f PDF signature backend configuration and adaptions
- Configuration UI for backend selection
 - If backend don't handle password itself, no reason to
   do the things with password
2023-06-21 18:32:50 +00:00
Sune Vuorela 5f2f844577 Remove now unused cmake target option; their actual usage never left my computer 2023-06-20 10:23:41 +02:00
Sune Vuorela 9f498c7f55 Allow new signatures to have image backgrounds 2023-06-14 17:47:41 +00:00
Sune Vuorela da7ca71291 Add location and reason to signing info 2023-06-14 17:47:41 +00:00
l10n daemon script 56c0407bcd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-06-12 01:50:14 +00:00
Heiko Becker 34f99b2094 GIT_SILENT Update Appstream for new release
(cherry picked from commit 01906f8fd9)
2023-06-02 20:56:30 +02:00
Martin Schnitkemper 8afcf256a8 Make default PDF printing scale mode configurable
Until now, some users have found it annoying when they want to print
multiple documents in their original size and have to manually change
the scaling mode before each print. This commit allows the user to
select the default value so they won't have to change it before every
print.

BUG: 463732
FIXED-IN: 23.08
2023-05-31 23:51:42 +00:00
Volker Krause e99919c4ff Fix messed up indention due to syntax error in ifdef'ed code 2023-05-25 19:50:14 +02:00
Sune Vuorela e2b8df2b43 Simple deprecation. SkipEmptyParts 2023-05-12 17:29:02 +00:00
Sune Vuorela 9bf726881f Simple deprecation. ERR_COULD_NOT_READ 2023-05-12 15:52:05 +02:00
Heiko Becker 1b5803a699 GIT_SILENT Update Appstream for new release
(cherry picked from commit 1e405ebc4c)
2023-05-06 10:22:13 +02:00
Sune Vuorela 763328a6ba Better dialog for selecting certificates
Instead of just a simple list of "nickname"'s which is kind of like the
signing backend's internal ID for a given certificate, provide some more
context to each key.

This is a slight improvement, not a complete overhaul.
2023-05-03 13:41:14 +00:00
Sune Vuorela 0f18f49397 Simple deprecation. SkipEmptyParts 2023-05-03 09:26:17 +00:00
Sune Vuorela b32ae775b4 Remove virtual methods from signature and certificate info
This is an abi break, but it menas we can extend signature and
certificate info in the future without breaking the abi again.

While we are at it, there is no need to hand around pointers to
certificate/signature info any longer, so clean up that. Fix memleaks as
side effect.
2023-05-03 09:15:42 +00:00
l10n daemon script 251ca60e90 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-04-24 01:43:52 +00:00
Sune Vuorela 8b814d0030 Deprecation fix. SkipEmptyParts 2023-04-19 19:11:31 +00:00
Heiko Becker 7c2c9a1231 GIT_SILENT Update Appstream for new release
(cherry picked from commit bcaeb7566a)
2023-04-12 18:13:21 +02:00
Willyanto Willyanto 647cdc40d0 Perform some initializations in initialization list
Fixes some variable is assigned in constructor body. Consider performing
initialization in initialization list. (CWE-398)
2023-03-23 17:37:37 +00:00
l10n daemon script e7f7f7d7af GIT_SILENT made messages (after extraction) 2023-02-25 00:58:02 +00:00
Heiko Becker c400b675b6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 5138c6ceae)
2023-02-24 22:39:10 +01:00
l10n daemon script 9ef28fffec SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-02-20 02:01:39 +00:00