Commit Graph

2560 Commits

Author SHA1 Message Date
l10n daemon script
3d085787ea 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 04:11:22 +00:00
l10n daemon script
da5496d7df GIT_SILENT made messages (after extraction) 2022-06-13 03:19:54 +00:00
l10n daemon script
559c274f3a 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-12 02:48:03 +00: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
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
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
dbe951e103 GIT_SILENT made messages (after extraction) 2022-05-17 02:10:46 +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
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
Heiko Becker
3144226af6 GIT_SILENT Update Appstream for new release 2022-05-07 11:34:30 +02:00
Heiko Becker
172f4edeae GIT_SILENT Update Appstream for new release 2022-04-12 23:27:55 +02: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
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
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
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
Volker Krause
50d0703ae0 Enable readability-braces-around-statements 2022-03-09 23:29:56 +01: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
Fabio Bas
da5fdc151b XPS: fix multipiece image loading
Turns out some files contain images saved in the xps archive as a directory containing multiple pieces, the first one being the image itself and the second one being empty.
Of course this is quite a weird way to save an image, but it seems that it still is valid and other viewers are able to load it correctly.
This change fixes the loading of multipiece images.

(cherry picked from commit 3506fb2ea8)
2022-01-26 13:50:40 +01:00
Fabio Bas
3506fb2ea8 XPS: fix multipiece image loading
Turns out some files contain images saved in the xps archive as a directory containing multiple pieces, the first one being the image itself and the second one being empty.
Of course this is quite a weird way to save an image, but it seems that it still is valid and other viewers are able to load it correctly.
This change fixes the loading of multipiece images.
2022-01-26 11:08:53 +00:00
Albert Astals Cid
a8e5f6e9f7 PDF: Allow signing unsigned signature fields 2022-01-24 13:18:36 +01:00
Albert Astals Cid
fa6743aa04 Support the PDF Print named action
Also stop casting directly from a poppler enum to an okular enum, it's
not cool

BUGS: 448791
2022-01-23 22:20:46 +00:00
Leonid Soshinskiy
cc0e128561 fb2: fix duplicating book title, annotation, cover etc. 2022-01-06 09:57:43 +00:00
Albert Astals Cid
bc9ca92885 if -> ifdef 2022-01-06 00:04:29 +01:00
Lenny Soshinskiy
2b837e08a0 fb2: show keywords in DocumentInfo 2022-01-05 15:16:55 +00:00
Albert Astals Cid
f03bbfa89d PDF: Allow signing documents that need password to open them
We need the password since in the middle of the signing process we need to reopen
the document we just created to do some final modifications
2022-01-05 13:59:37 +00:00
Albert Astals Cid
e2ac1dcd1e PDF: Fix memory leak when the file has Optional Content links 2022-01-04 16:42:35 +00:00
Yuri Chornoivan
3400e8aee6 Remove extra spaces in FB2 paragraphs
BUG: 359059
2022-01-04 12:08:43 +00:00
Heiko Becker
11448b94b1 GIT_SILENT Update Appstream for new release
(cherry picked from commit 8a09492a9a)
2022-01-04 01:06:53 +01:00
Heiko Becker
8a09492a9a GIT_SILENT Update Appstream for new release 2022-01-03 22:29:30 +01:00
Albert Astals Cid
b38b2dfe52 Merge remote-tracking branch 'origin/release/21.12' 2022-01-03 21:54:22 +01:00
Albert Astals Cid
e7eb937d28 Fix opening some password protected documents
e.g. the ones in poppler issue 824

The PDF spec doesn't say (or I couldn't find it) how a user entered
string is converted to the byte array needed for password checking, so
we try both latin1 and utf8
2022-01-03 18:26:49 +00:00
Albert Astals Cid
a2576dc746 Act on core/ TODOs that are not binary compatible
I'm going to need to break binary compatibility to add a new feature
so may as well cleanup all the TODOs regarding that

Changes:
 * Moving a few destructors to the header
 * Removing a few unnecessary & in params
 * Adding a few necessary & in params
 * Making print return an enum instead of a bool and then having another
   function that returns the enum
 * Make Generator::requestFontData be a virtual
 * Remove unused enum
 * Remove a few filePrinter unneeded functions
 * Remove unused TextDocumentGenerator::addMetaData signal
2021-12-29 09:35:25 +00:00
Albert Astals Cid
84d977dd2d GIT_SILENT Update Appstream for new release 2021-12-09 17:12:37 +01:00
Albert Astals Cid
09a2b506ed GIT_SILENT Update Appstream for new release
(cherry picked from commit 84d977dd2d)
2021-12-09 17:12:37 +01:00
Albert Astals Cid
97f06be67f Merge remote-tracking branch 'origin/release/21.12' 2021-12-07 12:11:44 +01:00
Albert Astals Cid
8126b99062 Make CI happy
Comment an unused varaible
2021-12-07 11:41:27 +01:00
l10n daemon script
0439961dce 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"
2021-12-06 02:44:04 +00:00