Albert Astals Cid
ceb8cf629d
poppler: Convert Stamp annotations via C++
...
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
6 years ago
Albert Astals Cid
d13b18af32
poppler: Convert Caret annotations via C++
...
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
6 years ago
Albert Astals Cid
bfdd033bfb
poppler: Convert Ink annotations via C++
...
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
6 years ago
Albert Astals Cid
a39708e71d
Remove setTextIcon call that we already do at createAnnotationFromPopplerAnnotation
6 years ago
Albert Astals Cid
eed89aaef6
poppler: Convert Highlight annotations via C++
...
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
6 years ago
Albert Astals Cid
f533788637
poppler: Convert Geom annotations via C++
...
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
6 years ago
Rafael Sadowski
49c680fd0e
Fix RTTI with clang
...
Clang's RTTI support don't work here, use qobject_cast<> to avoid
runtime crashes.
6 years ago
Albert Astals Cid
aabff9dbee
Merge remote-tracking branch 'origin/release/20.08' into master
6 years ago
Albert Astals Cid
3f89246317
Show "Follow link" if right clicking over link and annotation
...
Unite handling of right click in mouse release event
Before we had handling on press -> show annot menu if annot
and in release -> show link menu if link or show the genericmenu if nothing
Now we do everything on release and do
show link and annot menu if both
show link menu if link
show annot menu if annot
show generic menu if nothing
It helps with the fact that you can't click on links if there's an
annotation on top, which is a bit of a pain but it makes sense since
annotations usually have more interaction than links, you can select,
move, etc. them
BUGS: 425291
6 years ago
Albert Astals Cid
9b86535312
AnnotationPopup: Add possibility of filling an outside menu
6 years ago
Albert Astals Cid
4e91ab85fd
Rework how AnnotationPopup handles user choices
...
We use use connect with the action instead of checking the action
pointer after exec
6 years ago
Albert Astals Cid
40e890ef05
Move the i18n context where it matters
...
Adding context to "%1" means nothing, how else is "%1" going to be
translated whatever the context is? Put the context in the actual colors
6 years ago
Albert Astals Cid
dd80eb6673
Merge remote-tracking branch 'origin/release/20.08' into master
6 years ago
Albert Astals Cid
8eb0c0c56c
Don't use i18n in static variables
...
It's wrong, we can't be 100% sure the translation file is loaded already, use
ki18n
And while at it, make \"Transparent\" translatable
6 years ago
Oliver Sander
cc3f2857e0
Add an autotest for bug 421159
...
Bug 421159 involves a combination of scrolling with the scroll bar
and the mouse wheel. This patch adds an autotest for the bug,
to make sure it doesn't come back.
6 years ago
Albert Astals Cid
1a490056c8
Be more expressive on the "This document is signed" message
6 years ago
Nicolas Fella
43408594bb
Port away from KIconLoader::loadMimeTypeIcon
...
It's about to be deprecated
6 years ago
Albert Astals Cid
4ee716096d
We require Qt 5.12 now
6 years ago
Albert Astals Cid
ea5bf62189
We require KF 5.68 now, so cleanup some ifdefs
6 years ago
Laurent Montel
f7cc59b7dc
Drop outdated QT_USE_FAST_OPERATOR_PLUS
6 years ago
Albert Astals Cid
7ccb475df8
Fix crash on files that have the same signature in more than 1 page
...
It happens with some official documents where they use the same
signature in all pages to make it clear all pages are signed/official
BUGS: 426467
6 years ago
Albert Astals Cid
56a23a803f
CI: fix build_clazy_clang_tidy
6 years ago
Albert Astals Cid
9bf171a108
Fix crash on files that have the same signature in more than 1 page
...
It happens with some official documents where they use the same
signature in all pages to make it clear all pages are signed/official
BUGS: 426467
6 years ago
Albert Astals Cid
f1b29aca4f
CI: fix build_clazy_clang_tidy
6 years ago
Nate Graham
290b070f05
Merge branch 'release/20.08' into master
6 years ago
Kezi Olio
a5be0149ec
Restore mouse drag scrolling, so it starts immediately
...
QScroller uses a minimum drag distance before drag scrolling starts by default.
This sets the minimum distance to 0.0, to restore the original behavior of the Browse tool.
BUG: 420842
6 years ago
Pedro Arthur P. R. Duarte
e238f21bbb
Fix dangling annotation tooltip
6 years ago
Nate Graham
21262ae22b
Change scroll speed on the fly if the user changes it while Okular is open
...
This uses KConfigWatcher to listen for changes to the relevant config
value and update the speed dynamically, rather that just once when the
app is launched.
6 years ago
Nate Graham
2d6fafe255
Scale smooth scroll durations according to the global animation speed
...
Now people who don't like animations can set thenm to "Instant" globally
and smooth scrolling will be effectively disabled off in Okular.
There is no change in speed for people using the default global
animation duration.
BUG: 420755
FIXED-IN: 1.12.0
6 years ago
Nate Graham
37bb01c61d
Define animated smooth scroll durations in a central location
...
This will make it easy to adjust the durations in the future.
6 years ago
Friedrich W. H. Kossebau
37bf29d57d
Use ecm_setup_qtplugin_macro_names
...
Avoids all the explicit boilerplate needed, ensures the dependency on
the JSON file ia also set and allows simple export of the setup
in the installed CMake config file, so other projects importing
the config file have the respective CMake macros set as recommended.
Test Plan:
Still builds as before. Touch a plugin metadata JSON file now triggers a moc
rerun. CMake config file contains setup of variables.
6 years ago
Friedrich W. H. Kossebau
1784c1d0cb
Use more nullptr instead of 0
6 years ago
Friedrich W. H. Kossebau
7d34808dd3
Remove unneeded moc include
6 years ago
Albert Astals Cid
4085181512
UDSEntry::insert -> UDSEntry::fastInsert
...
we're clearing the UDSEntry just before the inserts so it's safe to
assume we're not inserting something that was there already
6 years ago
Albert Astals Cid
8a1bef81f8
Remove poppler 0.80 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
6b08af754f
Remove poppler 0.79 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
4d12c257b2
Remove poppler 0.74 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
9264723002
Remove poppler 0.73 ifdefs since we require 0.86 now
...
This actually fixes a mistake in SignatureFormTest::testSignatureForm
6 years ago
Albert Astals Cid
e283da994b
Remove poppler 0.69 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
eacb5eed8b
Remove poppler 0.68 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
7dce3389cb
Remove poppler 0.65 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
c019a7e76c
Remove poppler 0.64 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
bcd36d6374
Remove poppler 0.63 ifdefs since we require 0.86 now
6 years ago
Albert Astals Cid
c17127b018
cmake: suggest-override is provided by ECM since 5.55
6 years ago
Albert Astals Cid
e989200dcf
Increase minimum supported versions to those provided by Ubuntu 20.04
6 years ago
Albert Astals Cid
d5210db504
Change the version to be date based
...
As discussed on the Akademy meeting, it's just simpler to do this than
keep pretending 1.10 vs 1.9 have some kind of meaning :)
6 years ago
Thomas Friedrichsmeier
3fda3ba561
Fix build using MinGW
6 years ago
Nate Graham
114060ff53
Merge branch 'release/20.08' into master
6 years ago
Nate Graham
c54c38f761
Re-add smooth scrolling for arrow key and mouse wheel scrolling
...
This is safe now that the animated transitions no longer block repeated
scroll actions during the animation.
This partially reverts 08d368c13b
BUG: 422041
BUG: 425850
FIXED-IN: 1.11.2
6 years ago
Oliver Sander
112b6a10cd
Merge remote-tracking branch 'upstream/release/20.08' into master
6 years ago