Commit graph

8181 commits

Author SHA1 Message Date
Albert Astals Cid aed8e5ac28 Fix crash on shutdown when having edited text forms
This fixes the same crash as bug 393334 but in a better way
the old way was setting a variable on destruction and then trying
to use that variable in a slot, but that's obviously wrong since
we were already mid destructing the object.

BUG: 396807
2018-07-28 22:39:30 +02:00
Albert Astals Cid 1503463958 GIT_SILENT Upgrade KDE Applications version to 18.11.70. 2018-07-16 20:02:01 +02:00
Albert Astals Cid c05ebf2fc8 Increase version 2018-07-16 19:30:39 +02:00
Albert Astals Cid 0646a1dcfa GIT_SILENT Upgrade KDE Applications version to 18.07.80. 2018-07-16 19:29:16 +02:00
l10n daemon script c4570f7e40 GIT_SILENT made messages (after extraction) 2018-07-16 03:26:51 +02:00
l10n daemon script 860dc697ef GIT_SILENT made messages (after extraction) 2018-07-14 03:29:12 +02:00
Albert Astals Cid 6d3837e6f4 Merge remote-tracking branch 'origin/Applications/18.04' 2018-07-10 00:51:34 +02:00
Albert Astals Cid 14dc396cdb Do not crash on right-click on TOC item with no associated page
BUGS: 396326
2018-07-10 00:49:08 +02:00
Laurent Montel 634d8db004 Add missing () 2018-07-09 07:43:44 +02:00
Laurent Montel fd44517bae Honor BUILD_TESTING 2018-07-09 07:37:58 +02:00
Christoph Feck 8061f4c098 GIT_SILENT Upgrade KDE Applications version to 18.04.3. 2018-07-07 11:24:23 +02:00
l10n daemon script 2e73a6d76f 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"
2018-07-07 06:58:15 +02:00
l10n daemon script 879a46ac55 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"
2018-07-07 05:17:35 +02:00
Friedrich W. H. Kossebau 2d8179fdcb Remove usage of dead QT_USE_FAST_CONCATENATION
Dropped pre-Qt5
2018-06-29 19:45:56 +02:00
Michael Eden 031b794ec8 Expose 'change colors' through dbus interface
Summary:
This exposes the Okular's functionality of changing the document's colors
through its d-bus interface. This is mainly useful for scripting Okular to
switch to a 'day mode' or 'night mode'.

[Example] Switching themes of two applications with one hotkey:

{F5905771}

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D13471
2018-06-26 13:05:45 +02:00
Oliver Sander 862b2ab664 Allow to select more than one file in the 'open file' dialog
BUGS: 395175

Differential Revision: https://phabricator.kde.org/D13667
2018-06-25 17:11:51 +02:00
Laurent Montel 1bc4fb0dd9 Do not duplicate work of KAboutData::setupCommandLine() 2018-06-21 13:39:36 +02:00
l10n daemon script 853b711ff0 GIT_SILENT made messages (after extraction) 2018-06-13 03:45:27 +02:00
l10n daemon script 79cdfd3c21 GIT_SILENT made messages (after extraction) 2018-06-05 03:38:46 +02:00
Aleix Pol 8bf756c041 Name the manifest the same as the appdata 2018-06-04 19:23:51 +02:00
l10n daemon script b7c733f459 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"
2018-06-03 07:16:14 +02:00
l10n daemon script e090125cda GIT_SILENT made messages (after extraction) 2018-06-03 03:34:15 +02:00
Christoph Feck 0b1ef88124 GIT_SILENT Upgrade KDE Applications version to 18.04.2. 2018-06-02 00:51:43 +02:00
l10n daemon script bb3893b33f GIT_SILENT made messages (after extraction) 2018-06-01 03:36:34 +02:00
Albert Astals Cid 66b5f9c83c Merge remote-tracking branch 'origin/Applications/18.04' 2018-05-30 10:57:00 +02:00
Albert Astals Cid 95bc29a76f Force release of free memory
This should not be needed, but i can totally reproduce that without it
top is still reporting lots of memory used by Okular when it's really
not (heaptrack reports memory freed correctly)

BUGS: 394834
2018-05-30 10:55:17 +02:00
Andre Heinecke 5103e8db6f Add test for additional form actions
Summary: This tests the newly added additional widget actions.

Test Plan:
Passes for me. Is my first GUI test, maybe the timing
needs to be slower for slower machines?

Reviewers: aacid

Reviewed By: aacid

Subscribers: okular-devel

Tags: #okular

Maniphest Tasks: T8627

Differential Revision: https://phabricator.kde.org/D13170
2018-05-30 10:05:21 +02:00
Andre Heinecke 18d404c3ee Support additional widget actions in PDF Forms
Summary:
This adds support for actions associated with form fields
through corresponding annotation widgets.

Test Plan:
Still needs a unit test, only tested manually with
the document attached in the task.

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: okular-devel, aacid

Tags: #okular

Maniphest Tasks: T8627

Differential Revision: https://phabricator.kde.org/D12665
2018-05-30 10:04:21 +02:00
Andre Heinecke 3ae2ae06e8 Fix recalculating forms twice
Summary:
As a side effect of f0a80a67 a recalculation was triggered
by the notifyFormChanges called in EditFormTextCommand::redo,
which is called for each edit. So calculation was done twice.

Test Plan: The calculate forms test still passes.

Reviewers: aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12825
2018-05-28 16:03:54 +02:00
Burkhard Lück 7812952c85 add info about default/custom annotations
make it obvious that okular has more than the default annotations

Differential Revision: https://phabricator.kde.org/D13072
2018-05-24 06:57:33 +02:00
Oliver Sander 004efa70e4 Draw a dark rectangle around highlighted search results
Summary:
BUG: 355043

Makes it easier to distinguish search results from text with a 'highlight' annotation.

Reviewers: #okular

Subscribers: okular-devel, simgunz, cfeck, aacid, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7662
2018-05-18 17:27:28 +02:00
Simone Gaiarin 48b9ca66a6 Raise annotation window when clicking on annotation
Summary:
Raise annotation window when clicking on the window title, window text edit, or the associated annotation.

BUG: 388532

Reviewers: #okular, aacid

Subscribers: okular-devel, ngraham, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D10792
2018-05-18 15:17:58 +02:00
Aleix Pol add2c59808 Kirigami: Don't show two drawer items
One just on Android, the other for the rest
2018-05-18 14:41:11 +02:00
Aleix Pol 885e1f2269 Android: Make it possible to open documents from Android
Include ad-hoc code to open files on Android.
2018-05-18 01:44:18 +02:00
Aleix Pol 9ca00505a5 Kirigami: Remove unused slot 2018-05-17 19:58:47 +02:00
Aleix Pol 356229a74f Kirigami/Android: Try to get all android-specific code together
Create a separate android file for such code
2018-05-17 19:58:47 +02:00
Aleix Pol 600e72100b Remove the internal file navigation from the global drawer
Summary: Instead include an "open" item.

Test Plan: opened a file

Reviewers: #okular, mart, aacid

Reviewed By: mart

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12884
2018-05-17 16:56:22 +02:00
l10n daemon script 93645d1f9d GIT_SILENT made messages (after extraction) 2018-05-17 03:36:30 +02:00
Aleix Pol 5931c0de8d Don't pretend to translate "Okular" as an application name
Fixes build when signing the package.
2018-05-15 01:33:08 +02:00
Aleix Pol ad09cfdcf1 Kirigami: Properly reuse the page when scrolling back
Reviewed by Albert Astals
2018-05-13 17:57:22 +02:00
Aleix Pol ac53737242 Remove dup'ed comment 2018-05-13 17:56:05 +02:00
Aleix Pol 9cafd504c0 Kirigami: Asynchronous request of pixmaps
Don't block when reading the document to be able to render

Reviwed by Albert Astals
2018-05-13 17:55:34 +02:00
Aleix Pol c92397da88 Kirigami: Don't try to render if the item is empty 2018-05-13 16:11:55 +02:00
Aleix Pol 1a170e81df Kirigami: set request's normalized rect
We used to give a null rectangle and okular didn't render anything.

Reviewed by Albert Astals
2018-05-13 16:11:33 +02:00
Aleix Pol cf4bb5e3b1 Android: Make it possible to associate with files
Summary:
Put the file into a file descriptor and open this file descriptor.
Just application/pdf for now.

Test Plan: opened some documents on my phone

Reviewers: #okular, aacid, mart

Reviewed By: mart

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12770
2018-05-11 19:27:13 +02:00
Sune Vuorela aa800c01bc Merge branch 'Applications/18.04' 2018-05-08 21:46:20 +02:00
Sune Vuorela 3e48663fb7 Use a target in FindDiscount (modern cmake) rather than variables
Test Plan: Things still builds

Reviewers: kde-buildsystem, apol

Reviewed By: apol

Subscribers: apol, aacid, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12672
2018-05-08 21:39:06 +02:00
Aleix Pol 90f187e360 QtQuick: schedule a texture render when the window changes
It needs to the devicePixelRatio to the window where it's in.
2018-05-08 17:58:56 +02:00
Aleix Pol a082ace479 QtQuick: simplify PageItem
Don't compare the limits to itself
2018-05-08 17:58:56 +02:00
Aleix Pol 970e0f2ba9 QtQuick: simplify drawing code
Removes a deprecated optimization
2018-05-08 17:58:56 +02:00