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"
3 years ago
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"
3 years ago
Cimbali
a33e499b40
Fix wrong interpretation of autoplay flag
...
BUGS: 436709
3 years ago
Willyanto Willyanto
5bb79f2cfd
Add patch for call va_end() before return
3 years ago
Willyanto Willyanto
98876cf588
Replace qSwap with std::swap
...
Fixes obsolete function 'qSwap' called. It is recommended to use 'std::swap'
instead. (CWE-477)
3 years ago
Willyanto Willyanto
64e835103c
Call va_end() before return
...
Fixes va_list 'arg' was opened but not closed by va_end(). (CWE-664)
3 years ago
Max Mueggler
a1cf3f9e5e
Don't paint a partial pixmap over a fully rendered pixmap, even if dirty
...
This preserves fully rendered areas when zooming in or out instead of
replacing them with partially rendered pixmaps.
3 years ago
Max Mueggler
aa0386dccd
Fix hasPixmap setting size of TilesManager
3 years ago
Max Mueggler
8c61b6a2b4
Fixed issue with occasional mis-sized tile
...
It turns out that there were two issues at play here: rounding errors
meant that pixmaps were almost never the same size as pagePainter
thought the tiles should be, and the tile-is-the-size-it-should-be code
path was broken (but only hit in rare cases, seemingly at random).
To help with rounding errors in the future, I added a geometryF function
to NormalizedRect that returns a QRectF. In general,
device-independent-pixel points/rects should be floating point, and
device-pixel rects should be integer.
3 years ago
Albert Astals Cid
91afa74342
Set minimum requirement to Ubuntu 22.04
3 years ago
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"
3 years ago
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"
3 years ago
Nicolas Fella
9bf396ee7e
Add missing KBookmarkOwner include
3 years ago
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"
4 years ago
Nicolas Fella
2911f7a885
Very basic implementation for AFPercent_Keystroke
...
This is used to filter characters that don't make sense in a percent expression
This implementation is very rudimentary
4 years ago
Nicolas Fella
80afe26873
Implement event.change
...
This represents the newly entered data for each keystroke. This is often a single added character, but for cases like pasting text it can be more complex.
The PDF API reference doesn't specify any algorithm to use.
The algorithm used here works by iterating through both strings from the start until the first different character is encountered. Then the rest of the new text is considered the difference.
This doesn't produce the theoretically optimal/minimal diff, but seems to work well enough for practical application.
When text is removed the diff is empty
4 years ago
Nikola Nikolic
69a2cc144f
Fix viewport transition when translating/resizing annotations
...
Viewport isn't centered on annotations when translating/resizing.
This is best seen if the page is zoomed in and annotation is translated so that
several viewport transitions had happened.
Using undo after translation will expose error.
Function moveViewportIfBoundingRectNotFullyVisible centers viewport based on
translated/resized annotation's bounding rectangle.
For that reason functions translateBoundingRectangle/adjustBoundingRectangle need
to return the same bounding rectangle as annotation's translate/adjust functions.
4 years ago
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
4 years ago
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"
4 years ago
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"
4 years ago
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"
4 years ago
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"
4 years ago
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"
4 years ago
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"
4 years ago
Albert Astals Cid
030a34f1ff
Fix Windows compile with new stricter defines
4 years ago
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
4 years ago
Albert Astals Cid
8c31962e81
Port a few QLinkedList to std::list
...
here we do quite a bit removals from the middle, so feels better to have
something that is cheap to do that like std::list
4 years ago
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
4 years ago
l10n daemon script
46ddb1abe7
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"
4 years ago
l10n daemon script
5042078495
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"
4 years ago
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
4 years ago
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)
4 years ago
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
4 years ago
Albert Astals Cid
2d007f27d3
foreach -> for
...
A future ECM update is going to force that on us, so do it now anyway
4 years ago
Albert Astals Cid
a2e1043149
slots -> Q_SLOTS
...
A future ECM update is going to force that on us, so do it now anyway
4 years ago
Albert Astals Cid
ba35bbd9e6
emit -> Q_EMIT
...
A future ECM is going to force that on us, so do it early
4 years ago
Thiago Simão
af91d33070
Create empty inline note and then open dialog to get user's input.
4 years ago
Albert Astals Cid
df68aa0112
Remove extra bunch of {} added by clang-tidy ^_^
4 years ago
Albert Astals Cid
9d3842c796
Move to clang-format 13
4 years ago
Volker Krause
50d0703ae0
Enable readability-braces-around-statements
4 years ago
Nicolas Fella
d1ecad897c
Implement keystroke commit events
...
When a form field loses focus a special keystroke event with
willCommit=true is sent.
This is based on work by Joao Netto <joaonetto901@gmail.com>
4 years ago
Albert Astals Cid
1aa175cf3f
Support SaveAs action
...
If a new enough (unreleases as of now) poppler is available
BUGS: 451010
4 years ago
Nicolas Fella
5e8beb532a
Set correct textfield value on keystroke
...
event.value is the old value, we need to set the new value here
Modifying event.value is not supported when not committing
4 years ago
Nicolas Fella
fd1c312d57
Fix keystroke events
...
event.value is the value before editing, not after
4 years ago
Nicolas Fella
6c8cafbb1c
Simplify keystroke event handling
...
Make it more similar to how we handle the format event.
We pass the new value to processKeystrokeAction, that calls the script
and sets the new value for the form object according to the result. If
needed the widget is refreshed to reflect the new text
4 years ago
Andreas Naumann
147a638619
Adds option editor-cmd to the commandline
...
Adds the option "editor-cmd" for the [feature request](https://bugs.kde.org/show_bug.cgi?id=263732 ) .
BUG: 263732
4 years ago
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
4 years ago
Albert Astals Cid
8a36e7350d
Make Utils::realDpi work on QWindow not on QWidget
...
Small step towards the goal of okularcore not linking to QWidgets
4 years ago
Albert Astals Cid
a8e5f6e9f7
PDF: Allow signing unsigned signature fields
4 years ago
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
4 years ago