Commit graph

2780 commits

Author SHA1 Message Date
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
l10n daemon script e91c6cf0cf GIT_SILENT made messages (after extraction) 2023-02-20 00:55:34 +00:00
l10n daemon script bf745445bf 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-16 02:03:52 +00:00
Cimbali a33e499b40 Fix wrong interpretation of autoplay flag
BUGS: 436709
2023-02-15 23:32:49 +00:00
Albert Astals Cid f1f638c2c5 Compile with discount 3 2023-02-09 22:46:26 +00:00
Heiko Becker c3c0d8d528 GIT_SILENT Update Appstream for new release
(cherry picked from commit cffa20eeae)
2023-01-30 01:08:40 +01:00
Willyanto Willyanto 98876cf588 Replace qSwap with std::swap
Fixes obsolete function 'qSwap' called. It is recommended to use 'std::swap'
instead. (CWE-477)
2023-01-26 18:11:50 +00:00
Albert Astals Cid 3165771409 GIT_SILENT Update Appstream for new release
(cherry picked from commit 54faf31823)
2023-01-03 01:18:33 +01:00
l10n daemon script a9c435bce6 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"
2022-12-11 01:52:30 +00:00
Heiko Becker 95846eaf4e GIT_SILENT Update Appstream for new release
(cherry picked from commit 6076431f4b)
2022-11-30 09:03:22 +01:00
Heiko Becker 7a27483063 GIT_SILENT Update Appstream for new release
(cherry picked from commit cf4777477c)
2022-11-30 09:03:22 +01:00
l10n daemon script dcc6cd77f2 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"
2022-11-29 01:49:28 +00:00
Albert Astals Cid fc8059575e Two more version checks that are not needed now 2022-11-19 11:10:16 +01:00
Albert Astals Cid 91afa74342 Set minimum requirement to Ubuntu 22.04 2022-11-19 09:48:15 +00:00
l10n daemon script b44ac3af51 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"
2022-11-11 01:50:49 +00:00
l10n daemon script 3c4d8cbfd3 GIT_SILENT made messages (after extraction) 2022-11-11 00:43:49 +00:00
l10n daemon script 9f1300c115 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"
2022-11-10 01:51:04 +00:00
Ilya Pominov a51de260f5 Fix build warning in pdf generator
warning: ‘void Poppler::Document::getPdfVersion(int*, int*) const’ is
deprecated [-Wdeprecated-declarations]
2022-11-03 01:05:40 +03:00
l10n daemon script a8a89b2d8c 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"
2022-11-01 01:52:20 +00:00
l10n daemon script 547a0e2f76 GIT_SILENT made messages (after extraction) 2022-11-01 00:45:28 +00:00
l10n daemon script 9579a4540f 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"
2022-10-28 01:51:08 +00:00
l10n daemon script 235c93c8ad GIT_SILENT made messages (after extraction) 2022-10-28 00:43:52 +00:00
Heiko Becker 8119d903a3 GIT_SILENT Update Appstream for new release
(cherry picked from commit b39a4d7fe2)
2022-10-10 21:58:46 +02:00
l10n daemon script 804cadfb53 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"
2022-09-18 01:41:53 +00:00
l10n daemon script 5fcb59011b GIT_SILENT made messages (after extraction) 2022-09-18 00:43:16 +00:00
l10n daemon script 04059bae4b 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"
2022-09-08 01:47:47 +00:00
Heiko Becker db9f77543e GIT_SILENT Update Appstream for new release
(cherry picked from commit 8cb15507fd)
2022-09-03 01:08:35 +02:00
Albert Astals Cid b2c56a0a71 Merge remote-tracking branch 'origin/release/22.08' 2022-08-31 22:09:06 +02:00
Albert Astals Cid 656587ca63 epub: Improve TableOfContents for some files
The link can be percent encoded so try it like that if not found in the
normal way, also if the text overflows the page, it's in the next page

BUGS: 458289
2022-08-25 23:38:42 +02:00
Albert Astals Cid 4ad5753c3c GIT_SILENT Update Appstream for new release
(cherry picked from commit a0c6cb572a)
2022-08-10 23:45:16 +02:00
Albert Astals Cid a0c6cb572a GIT_SILENT Update Appstream for new release 2022-08-10 23:44:59 +02:00
l10n daemon script 0330558977 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"
2022-08-07 02:53:38 +00:00
l10n daemon script f0d3e6f047 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"
2022-08-07 01:45:43 +00:00
Nicolas Fella 899575ce83 Remove unused include 2022-08-06 19:40:51 +02:00
l10n daemon script 7589278d35 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"
2022-08-05 01:42:21 +00:00
Albert Astals Cid 0a571b84df clang-tidy-14 2022-08-02 23:09:05 +02:00
l10n daemon script 326d314677 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"
2022-07-03 01:54:16 +00:00
l10n daemon script 566687744e 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"
2022-07-02 01:59:30 +00:00
l10n daemon script 07b9872518 GIT_SILENT made messages (after extraction) 2022-07-02 00:44:24 +00:00
Heiko Becker f9e78b9253 GIT_SILENT Update Appstream for new release
(cherry picked from commit 6bc195446d)
2022-07-01 21:37:09 +02:00
l10n daemon script 9df4986183 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"
2022-07-01 01:46:49 +00:00
Harald Sitter 8870f6074f alias generator desktop files
this allows UIs to know that this is really okular and may show okular
instead (considering the generators are nodisplay=true)

specifically this allows the xdg-desktop-portal-kde to show okular in
its appchooser dialog even though the actual mimetype match happend
against (e.g.) okularApplication_pdf.desktop and is NoDisplay

(mobile curious has inconsistent naming, the main desktop file is
definitely org.kde.okular.kirigami.desktop)
2022-06-17 17:37:10 +00:00
l10n daemon script d17b4ab2e9 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"
2022-06-13 02:20:38 +00:00
l10n daemon script a761a59630 GIT_SILENT made messages (after extraction) 2022-06-13 00:54:48 +00:00
Albert Astals Cid 12a222c950 Merge remote-tracking branch 'origin/release/22.04' 2022-06-09 11:21:35 +02:00
l10n daemon script b910edafb6 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"
2022-06-09 03:27:27 +00:00
l10n daemon script 1626b59fef 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"
2022-06-09 02:00:18 +00:00
l10n daemon script 06612d93f0 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"
2022-06-07 03:45:56 +00:00
l10n daemon script 4c57664483 GIT_SILENT made messages (after extraction) 2022-06-07 02:58:00 +00:00
l10n daemon script dfe316c6ec 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"
2022-06-07 02:06:15 +00:00
l10n daemon script f0b94bee66 GIT_SILENT made messages (after extraction) 2022-06-07 00:47:37 +00:00
Heiko Becker 6ad408cd66 GIT_SILENT Update Appstream for new release 2022-06-04 10:27:58 +02:00
l10n daemon script c823af787b 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"
2022-05-31 03:16:29 +00:00
l10n daemon script a1d0b42a7f 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"
2022-05-31 01:55:33 +00:00
l10n daemon script dbe951e103 GIT_SILENT made messages (after extraction) 2022-05-17 02:10:46 +00:00
l10n daemon script 8880077fe6 GIT_SILENT made messages (after extraction) 2022-05-17 00:43:26 +00:00
l10n daemon script ad813d6667 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"
2022-05-13 02:49:57 +00:00
l10n daemon script 9b57bb847e GIT_SILENT made messages (after extraction) 2022-05-13 02:11:05 +00:00
l10n daemon script e8d5f24ad4 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"
2022-05-13 01:44:03 +00:00
l10n daemon script 3001fcb88d GIT_SILENT made messages (after extraction) 2022-05-13 00:44:03 +00:00
l10n daemon script c53a64c8da 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"
2022-05-09 02:50:27 +00:00
l10n daemon script 8805d1bde9 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"
2022-05-09 01:41:46 +00:00
Heiko Becker be0f1090ae GIT_SILENT Update Appstream for new release
(cherry picked from commit 3144226af6)
2022-05-07 11:34:49 +02:00
Heiko Becker 3144226af6 GIT_SILENT Update Appstream for new release 2022-05-07 11:34:30 +02:00
Albert Astals Cid 8e311cf26d Fix logical mistake in 44304b32a5
ifndef feature means < when checking for feature not >=
2022-05-04 23:41:42 +02:00
Albert Astals Cid 44304b32a5 Use the poppler version includes instead of check_cxx_source_compiles 2022-05-04 01:16:35 +02:00
Daniel Novomeský 7c596be34a kimgio: enable JPEG XL format
BUG: 453131
2022-04-29 09:34:48 +00:00
l10n daemon script 7cd0d78b5c 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"
2022-04-14 01:42:53 +00:00
Heiko Becker 715b8707b5 GIT_SILENT Update Appstream for new release
(cherry picked from commit 172f4edeae)
2022-04-12 23:28:06 +02:00
Heiko Becker 172f4edeae GIT_SILENT Update Appstream for new release 2022-04-12 23:27:55 +02:00
Nicolas Fella 4202ccf000 [epub] Fix Windows build
epub_open wants const char*, not QByteArray
2022-04-11 18:35:05 +00:00
Albert Astals Cid 52d1a3b91e Fix "endl" use
If it was at the end of qDebug/qCritical/etc, just remove it, those
already have a newline at the end

The other few convert them to \n
2022-04-08 16:37:44 +02:00
Albert Astals Cid 0d40301d50 Add a few definitions that will come with ECM 5.85
Better enforce them now, so that the work to port doesn't increase over
time

Not a super fan of this for regular applications, but oh well the ship
has sailed
2022-04-07 23:02:12 +00:00
M  B  5339b7eef1 Markdown: Fix images with special chars in URLs not loaded
If an image URL contains a non-ASCII character (e.g. `kartöffelchen.jpg`), the html returned by the markdown parser contains the encoded path `kart%C3%B6ffelchen.jpg`. We must decode the path before checking if the image file exists.

(cherry picked from commit 8aa96484da)
2022-04-04 00:29:20 +02:00
M  B  8aa96484da Markdown: Fix images with special chars in URLs not loaded
If an image URL contains a non-ASCII character (e.g. `kartöffelchen.jpg`), the html returned by the markdown parser contains the encoded path `kart%C3%B6ffelchen.jpg`. We must decode the path before checking if the image file exists.
2022-04-03 16:02:44 +00:00
Albert Astals Cid 5ceeb68dfe Remove unused KIO::Core dependencies 2022-04-03 10:57:09 +00:00
Albert Astals Cid 252236d413 Port a few more QLinkedList to QList
We don't need the special properties of QLinkedList in any of those and
QLinkedList is deprecated, so move away from it
2022-03-31 17:08:01 +02:00
Albert Astals Cid 5944ce059f Android: improve a bit the "androiddeployqt is not smart and needs help" code
We do that by:
 * Remembering all the generators we're building
 * Linking the dependencies of all those generators against the app

For that to work we do three things:
 * Move the creation of the app target to after the generator targets
   have been created
 * Have a global variable that lists all the created generators
 * Move the find_package of the generator dependencies to the top level
   so it can be used from the mobile app target
2022-03-28 20:25:04 +00:00
Albert Astals Cid d72d3a01a5 Merge remote-tracking branch 'origin/release/22.04' 2022-03-28 22:19:45 +02:00
Albert Astals Cid dbcda67ab9 Fix opening CHM files on Windows
This is part of 451985 the other part is that KF5.91 windows build of
khtml was broken, seems the 5.92 one is good, so once we release 22.04.0
it should be all good hopefully.

BUGS: 451985
2022-03-28 22:17:42 +02:00
Albert Astals Cid 0741ef1838 Port away from more QLinkedLists
QLinkedList is gone from Qt6

The almost 1:1 port is std::list but we don't need iterator stability on
removal/insertion so just port to QList
2022-03-22 12:58:59 +01:00
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
Georgiy Sgibnev 17be599933 Dealing with a tmp file in case of a signing fail 2022-03-21 09:40:58 +03:00
Albert Astals Cid 6767b8739e Port a few QLinkedList to QList
QLinkedList is deprecated in later Qt5 and gone in Qt6

The 1:1 port is std::list but in this cases all we ever do
is create the lists, push back to them, and pass then around
to be read, for that a QList is more than enough
2022-03-19 11:22:55 +00:00
Albert Astals Cid 6747e7fe8b signals-> Q_SIGNALS
A future ECM update is going to force that on us, so do it now anyway
2022-03-19 10:58:47 +00:00
Albert Astals Cid a2e1043149 slots -> Q_SLOTS
A future ECM update is going to force that on us, so do it now anyway
2022-03-19 10:58:47 +00:00
Albert Astals Cid ba35bbd9e6 emit -> Q_EMIT
A future ECM is going to force that on us, so do it early
2022-03-19 10:58:47 +00:00
snooxx 💤 2ad9e6f0b3
Simplify QPainter::drawRoundedRect usage
After fixing the porting mistake done in 78d983ee, `drawRoundedRect` can
be further simplified to not use any relative sizes anymore.

We can also assume that the code in `dviRenderer::epsf_special` was
supposed to use a constant corner radius and therefore was wrong
initially. By dropping `Qt::RelativeSize` the code might become closer
to its originally intended behavior.

Test Plan:
  - No change in behavior for rounded corners of "Welcome" popup message
    and "No Annotations" message in sidebar.
  - Could not test DVI code path.
2022-03-09 22:38:55 +00:00
Volker Krause 50d0703ae0 Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
snooxx 💤 667e73325a
Restore properly rounded corners of popup messages
78d983ee led to some rounded corners in the UI not being perfectly
circular anymore: Popup messages would stretch the rounding depending on
message length, and the rounded corner of the message in the annotation
bar would get distorted while changing the sidebar's width.

That commit tried to fix the following `warning: ‘void
QPainter::drawRoundRect(int, int, int, int, int, int)’ is deprecated:
Use drawRoundedRect(..., Qt::RelativeSize)` by changing to
`drawRoundedRect`, but missed to also add `Qt::RelativeSize`.

Adding the missing flag fixes both issues. The change is also
implemented in `dviRenderer::epsf_special` (introduced in be544056,
changed in 55dc43bf) for correctness.

Test Plan:
  - Start Okular. The "Welcome" message and the "Document Loaded"
    message have perfectly rounded corners again, not depending
    on message length.
  - Change width of the annotations sidebar: The "No Annotations"
    message does not change its rounded corners anymore.
  - Running in HiDPI mode retains the correct behavior.
  - Note: There does not seem to be a trivial/convenient way to trigger
    the DVI code path.
2022-03-07 14:01:53 +00:00
Albert Astals Cid 1aa175cf3f Support SaveAs action
If a new enough (unreleases as of now) poppler is available

BUGS: 451010
2022-03-06 19:16:27 +00:00
Heiko Becker fe5847155c GIT_SILENT Update Appstream for new release
(cherry picked from commit b2d872c79f)
2022-02-27 19:11:13 +01:00
Albert Astals Cid 4cd6bfd30e mobile: Add Signature Viewing UI
Move a few files from part/ to gui/ since they are also used by the
mobile/ frontend
2022-02-18 08:32:13 +00:00
l10n daemon script c014232697 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"
2022-02-11 01:43:34 +00:00
l10n daemon script 18fab8e19b GIT_SILENT made messages (after extraction) 2022-02-11 00:42:43 +00:00
l10n daemon script 5115d6db24 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"
2022-02-05 01:43:36 +00:00
Albert Astals Cid 218edc6f4a Merge remote-tracking branch 'origin/release/21.12' 2022-01-29 11:47:52 +01:00
Albert Astals Cid 5d1d412092 Fix opening epub files with non ascii names on Windows
epub_open wants an utf8 in Windows

It probably also wants utf8 in Linux, but the qPrintable already gives
us an utf8 in most of the normal Linux locales, so don't touch that

BUGS: 448274
2022-01-29 00:42:15 +00:00
Albert Astals Cid feef900250 Make sure helper apps we start are in path
QProcess will happily start things in CWD which is not what we want
2022-01-28 22:51:20 +00:00
Heiko Becker db9dd90925 GIT_SILENT Update Appstream for new release
(cherry picked from commit 715fd1ac36)
2022-01-28 23:45:01 +01:00
Heiko Becker 715fd1ac36 GIT_SILENT Update Appstream for new release 2022-01-28 23:44:37 +01:00