Commit graph

8272 commits

Author SHA1 Message Date
Aleix Pol ff2f60754d Properly find the Purpose framework
Now that we require KF5 5.44

Reviewers: #okular, aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16544
2019-01-07 00:56:08 +01:00
Albert Astals Cid 7254c1826c K_PLUGIN_FACTORY_WITH_JSON -> K_PLUGIN_CLASS_WITH_JSON
Now that we require KF5 5.44
2019-01-07 00:56:08 +01:00
Albert Astals Cid 3513aea5bf Increase KF5 requirement to 5.44 2019-01-07 00:56:08 +01:00
l10n daemon script d6775c6462 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"
2019-01-06 05:35:56 +01:00
l10n daemon script 802e8814aa GIT_SILENT made messages (after extraction) 2019-01-05 03:17:40 +01:00
Iñigo Salvador Azurmendi 3ce4e98adb Better wording 2019-01-05 00:01:02 +01:00
Oliver Sander a4735e428a Use more std::unique_ptr 2018-12-30 16:52:47 +01:00
Albert Astals Cid cbae44467a Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-26 12:03:38 +01:00
Albert Astals Cid 58038fed18 Do not crash in files without title-info
BUGS: 402558
2018-12-26 12:02:31 +01:00
l10n daemon script 42ca9ab2f2 GIT_SILENT made messages (after extraction) 2018-12-26 03:11:23 +01:00
Yuri Chornoivan b156125d23 Add some documentation on how to enhance PDF printing in Okular
Summary: It is sometimes untrivial for ordinary user to find the right options to print PDF. It should be documented somehow.

Test Plan: Tested woth checkXML5

Reviewers: #okular, #documentation, ngraham

Reviewed By: ngraham

Subscribers: ngraham, okular-devel, kde-doc-english

Tags: #okular, #documentation

Differential Revision: https://phabricator.kde.org/D17749
2018-12-24 17:41:27 +02:00
Oliver Sander 2e97d58750 Implement several new print scaling options
This patch introduces the choice between three scaling
options for printing:

* Fit to printable area
* Fit to full page
* No scaling

The new options only work with the QPrinter backend.  Therefore
they are only enabled if 'force rasterization' is selected.

Differential Revision: https://phabricator.kde.org/D7962
2018-12-23 02:25:08 +01:00
Oliver Sander 677fc76760 Fix 'Erase Drawing' tooltip text
Before, it said 'Erase Drawings', which is incorrect, because only
the drawing on the current page is erased.
2018-12-21 19:10:25 +01:00
Simone Gaiarin 1547c78340 Move "erase drawings" action to last position and change its icon
It is more logical to have the drawing tools first, then the eraser,
and then the action to delete everything. Also the two actions to erase
things are close to each other now.

The icon of "erase drawing" has been changed to draw-eraser-delete-objects
to distinguish it from the "Eraser" tool.

BUG: 399734

Differential Revision: https://phabricator.kde.org/D16171
2018-12-21 12:44:04 +01:00
l10n daemon script 876bd02e8a GIT_SILENT made messages (after extraction) 2018-12-21 07:16:55 +01:00
l10n daemon script 59307b57ab GIT_SILENT made messages (after extraction) 2018-12-21 03:16:27 +01:00
l10n daemon script b2fd519f6b GIT_SILENT made messages (after extraction) 2018-12-19 03:15:21 +01:00
Albert Astals Cid 004120917d Fix build ^_^ 2018-12-19 00:58:11 +01:00
Albert Astals Cid c950ea92f5 PDF: Add a "Using Poppler $VERSION" string
It is sometimes useful to know which version of the poppler you're using
and to which you where built

Needs feature introduced in poppler just now
2018-12-19 00:41:37 +01:00
Albert Astals Cid a4a1978516 Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-18 22:49:46 +01:00
Albert Astals Cid ba5ec662a2 Fix crash when writing to some forms
typo type typeo :D

BUGS: 402307
2018-12-18 22:48:04 +01:00
l10n daemon script 829d189e27 GIT_SILENT made messages (after extraction) 2018-12-17 03:08:39 +01:00
l10n daemon script 5fdeec57df GIT_SILENT made messages (after extraction) 2018-12-16 07:16:56 +01:00
l10n daemon script efbab7a67d GIT_SILENT made messages (after extraction) 2018-12-13 07:25:43 +01:00
l10n daemon script e0cd758ae0 GIT_SILENT made messages (after extraction) 2018-12-13 03:17:44 +01:00
l10n daemon script 43eb508c32 GIT_SILENT made messages (after extraction) 2018-12-12 07:54:57 +01:00
Laurent Montel 28ce7a170e GIT_SILENT: Use https here 2018-12-10 13:25:58 +01:00
Albert Astals Cid 991a067aff Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-06 00:25:32 +01:00
Albert Astals Cid ba1c2beb70 Fix regression in Ctrl+Wheel zoom when using the touchpad
For some reason Qt started sending mouse move events after all wheel
events so only reset the delta when the mouse move event represents an
actual move
2018-12-06 00:24:39 +01:00
Albert Astals Cid 586a3395e0 Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-05 00:34:11 +01:00
Albert Astals Cid 22c5ceae7f Update version for next stable release
GIT_SILENT
2018-12-05 00:33:25 +01:00
Christoph Feck 70aa15d37d GIT_SILENT Upgrade KDE Applications version to 18.12.0. 2018-12-05 00:34:16 +01:00
l10n daemon script 03d0a40397 GIT_SILENT made messages (after extraction) 2018-12-03 07:15:53 +01:00
l10n daemon script e19cd125f1 GIT_SILENT made messages (after extraction) 2018-12-03 03:19:29 +01:00
Tobias Deiminger 09a2d6ed67 Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-29 21:42:35 +01:00
Tobias Deiminger a29e4eaff5 Fix inconsistent viewport positioning in PageView
Summary:
This diff unifies the calculation of the viewport position from a given DocumentViewport. PageView::notifyViewportChanged and PageView::slotRelayoutPages used to handle it differntly, which resulted in viewport jumps for no reason.

It happened in various situations, e.g. when jumping to a page using the footer page navigation, or when reloading the document after presentation mode left, or when resizing the main window after presentation mode left.

The diff selects the notifyViewportChanged way (align viewport top border with page top margin) as golden behavior in case of rePos.enabled == false.

BUGS: 357958
CCBUG: 341939
CCBUG: 400890

341939 and 400890 are fixed partially. These two still suffer from a minor displacement that happens when finished signal arrives from pixmap generation thread.

Test Plan:
- When using the footer page navigation to jump to different pages, new page top is always algined with viewport top.
- After changing page with footer page navigation, press F5 to reload. Page top stays aligned with viewport top.
- When exiting presentation mode, and touching the file, page top stays aligned with viewport top.
- When exiting presentation mode, and changing main window size, page top stays aligned with viewport top.

Reviewers: #okular, sander

Reviewed By: sander

Subscribers: ngraham, sander, aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16941
2018-11-29 21:41:43 +01:00
Albert Astals Cid c4cf125e85 Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-28 23:11:47 +01:00
Alexander Kandaurov b04a2daa6b Fix DjVu links pointing to pages with different dimensions
Summary:
Currently the coordinates of a link rectangle in a DjVu document are computed with respect to the size of the page the link is pointing to. Because of that, links only appear in correct places if the dimensions of a target page are the same as of the page containing the link.

The attached file demonstrating the issue contains two pages, one in portrait orientation and one in landscape, the first pointing to the second. The active zone for the link is different from where it is in other viewers.
{F6443987}

Reviewers: #okular

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D17194
2018-11-28 23:11:00 +01:00
Heiko Becker 442cbfcfee Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-27 20:37:59 +01:00
Heiko Becker 140638a0b3 Explicitly import Qt 5.7's QtQuick for Connections.enabled
Summary:
It was introduced in that version and apparently Qt 5.12 is stricter
about this and causes 'qrc:/package/contents/ui/main.qml:59
"Connections.enabled" is not available in QtQuick 2.1.' when trying
to start okularkirigami without this patch.

Test Plan: okularkirigami shows up

Reviewers: #okular, apol

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D17196
2018-11-27 19:41:25 +01:00
Christoph Feck 461171e473 GIT_SILENT Upgrade KDE Applications version to 18.11.90. 2018-11-26 14:36:37 +01:00
l10n daemon script 7e0c8651e4 GIT_SILENT made messages (after extraction) 2018-11-26 03:10:23 +01:00
Laurent Montel 6cbbc7f7a9 Fix mem leak found by asan
Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f4fa41e3900 in operator new(unsigned long)
(/usr/lib64/libasan.so.5+0xed900)
    #1 0x7f4f96a455b2 in Okular::Annotation::Window::Window()
/compile/kde5/framework/kde/kdegraphics/okular/core/annotations.cpp:341
    #2 0x7f4f96a46207 in Okular::AnnotationPrivate::AnnotationPrivate()
/compile/kde5/framework/kde/kdegraphics/okular/core/annotations.cpp:493
    #3 0x7f4f96a7f605 in
Okular::TextAnnotationPrivate::TextAnnotationPrivate()
(libOkular5Core.so.9+0xb9605)
    #4 0x7f4f96a57ceb in Okular::TextAnnotation::TextAnnotation()
/compile/kde5/framework/kde/kdegraphics/okular/core/annotations.cpp:1042
    #5 0x7f4f96e3e04f in EditAnnotToolDialog::createStubAnnotation()
/compile/kde5/framework/kde/kdegraphics/okular/conf/editannottooldialog.cpp:300
    #6 0x7f4f96e2aa8b in
EditAnnotToolDialog::EditAnnotToolDialog(QWidget*, QDomElement const&)
/compile/kde5/framework/kde/kdegraphics/okular/conf/editannottooldialog.cpp:97
    #7 0x7f4f96e52bbb in WidgetAnnotTools::slotAdd()
/compile/kde5/framework/kde/kdegraphics/okular/conf/widgetannottools.cpp:151
    #8 0x7f4f96e5799c in
QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>,
void, void (WidgetConfigurationToolsBase::*)()>::call(void
(WidgetConfigurationToolsBase::*)(),
2018-11-21 13:25:59 +01:00
l10n daemon script b9d751ae76 GIT_SILENT made messages (after extraction) 2018-11-21 07:23:43 +01:00
l10n daemon script a71f18a001 GIT_SILENT made messages (after extraction) 2018-11-21 03:16:51 +01:00
Yuri Chornoivan 6102c65d6e Minor fixes to API docs 2018-11-20 19:43:11 +02:00
Laurent Montel 21c67eaaa0 Use new syntax 2018-11-20 13:21:08 +01:00
l10n daemon script e6f3f972db GIT_SILENT made messages (after extraction) 2018-11-16 06:56:46 +01:00
l10n daemon script 41330b111a GIT_SILENT made messages (after extraction) 2018-11-16 03:50:24 +01:00
Yuri Chornoivan 5478b2ec92 Fix minor typos 2018-11-14 21:12:15 +02:00