Commit graph

2724 commits

Author SHA1 Message Date
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