Commit graph

8668 commits

Author SHA1 Message Date
l10n daemon script f2274e8992 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"
2020-02-14 05:55:12 +01:00
Yuri Chornoivan 5c6a297feb Fix minor EBN issues 2020-02-13 11:47:51 +02:00
Harri Porten c1afa356c0 Restrict time given for JavaScript evaluation to max. 2 seconds.
Possible improvement: alert the user of the timeout and offer
the option to continue or abort execution.
2020-02-11 22:34:46 +00:00
Albert Astals Cid 99b4f276e1 Clear m_openError before opening 2020-02-11 00:27:46 +01:00
Albert Astals Cid 18873d18a2 Document the since for Document::openError 2020-02-11 00:25:04 +01:00
Albert Astals Cid 987abf54d7 Move the private slot to a lambda
This way we don't need a private function in a public class
2020-02-11 00:25:00 +01:00
Andi Sardina Ramos c549d28f7f Solving the creation of an additional tab for a deleted file.
BUG: 412978
BUG: 412979
2020-02-10 23:22:06 +00:00
Albert Astals Cid cb3426d024 Fix crash when not in viewer mode
BUGS: 417118
2020-02-10 00:42:31 +01:00
Albert Astals Cid a96c082d69 Build desktop User Interface by default
Can choose to only build mobile interface or both
2020-02-06 22:26:00 +01:00
l10n daemon script 0d5bd0bc43 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"
2020-02-04 06:09:17 +01:00
David Hurka c6d937ab0d Replace ToolAction by ToggleActionMenu
Summary:
This replaces ToolAction by a near-drop-in replacement named ToggleActionMenu. The new annotation toolbar already uses this (D15580).

Unlike ToolAction, ToggleActionMenu inherits from KActionMenu to be more flexible.
* Menu can be set from outside, not hard coded.
* Default action for toolbar button is controllable from outside. (Theoretically, the button could trigger //anything// now.)
* KActionMenu instead of KSelectAction:
  - Pluggable in other menus, thus called “Menu”.
  - Doesn’t make the actions exclusive, so //any// actions can be added to the menu.
* ImplicitDefaultAction mode can choose the default action of the toolbar buttons automatically, by looking for the first checked action in the menu.

Toolbar buttons use the default action //of// this menu, not this menu itself as action.

Because the default action is configurable now, D21622 and D21635 (where we tried to fine-tune ToolAction) become obsolete.

Screenshot:
Everything like before, here with mouse_selecttool added to Tools menu to show submenu capability.
{F6884228}

Test Plan:
ToolAction replacement and ImplicitDefaultAction mode:
 * Open Okular and look at toolbar button -> has correct tool selected.
 * Open a document.
 * Look at toolbar button menu -> Correct menu entries (like before, with ToolAction).
 * Select some selection tools through shortcuts and toolbar button -> behaves correctly.
Usage as submenu:
 * Add ToggleActionMenu ("mouse_selecttool") to menubar (..../kxmlgui5/okular/part.rc) -> Submenu looks correctly, has no checkbox attached and so on...
Toolbar buttons:
 * Add diverse other actions to the menu -> still works as before.
 * Add actions when toolbar buttons are already created -> actions are added to existing buttons.
 * setDefaultAction() to some completely unrelated action. -> ToggleActionMenu does not get confused.

Reviewers: simgunz

Reviewed By: simgunz

Subscribers: aacid, ngraham, simgunz, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D21971
2020-02-02 01:33:33 +01:00
l10n daemon script 5dfbee0a00 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"
2020-02-01 05:46:42 +01:00
Albert Astals Cid b82682037e Merge remote-tracking branch 'origin/release/19.12' 2020-01-31 10:22:59 +01:00
l10n daemon script 134c16efdc 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"
2020-01-31 09:40:26 +01:00
l10n daemon script f6ee1a3b24 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"
2020-01-31 05:46:31 +01:00
Tobias Deiminger 378e99d719 Fix race condition in generator.cpp
The check whether to allocate a new QMutex was unprotected.
Two threads may check and allocate concurrently, but only one pointer gets
remembered, the other one will leak. In worst case the returned
mutex is different for two threads, so that two threads try to
synchronize by using two different mutexes.
2020-01-30 09:42:17 +01:00
Tobias Deiminger 593803b0a1 Fix render stop and high load due to timing issue
Text generation is connected to pixmap generation thread started signal.
However the signal may have been emitted faster than the connect could took place,
and because started is fired only once, the connected lambda never got executed.

generatePixmap tried to sync up with that never happening text generation anyway
by means of scheduling itself. This lead to a infinite loop via a no more sleeping QEventLoop.

Fixed by moving the connect in front of starting the thread.

BUG: 396137
BUG: 396087
CCBUG: 403643
2020-01-30 09:15:40 +01:00
l10n daemon script aae406bd80 GIT_SILENT made messages (after extraction) 2020-01-29 02:58:10 +01:00
l10n daemon script 79de5d3958 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"
2020-01-28 05:42:48 +01:00
l10n daemon script a5eda6348f GIT_SILENT made messages (after extraction) 2020-01-28 03:10:03 +01:00
Oliver Sander fdab280888 Unit test for navigating the viewport history 2020-01-26 19:06:57 +01:00
Ahmad Samir 4a4456abd7 Port QRegExp to QRegularExpression in a couple of locations
Some instances of QRegExp are still left:
generators/mobipocket and generators/epub
2020-01-26 11:40:33 +00:00
Albert Astals Cid 2da1cd736a CI: Enable clang-tidy modernize-loop-convert 2020-01-24 17:23:39 +01:00
Ahmad Samir ea75c27a1f [PartTest] Fix testeRectSelectionStartingOnLinks() by hiding info messages
The info message bubble that shows up in the okular window in testeRectSelectionStartingOnLinks()
interfereswith the mosue selection making the test fail on HiDPI monitors
with resolution 3840x2160; hiding the info message lets the unit test pass.
2020-01-19 11:45:11 +00:00
Laurent Montel cea7d0fa28 Don't use endl at the end of qDebug as it already adds end line 2020-01-17 21:04:27 +01:00
l10n daemon script 7e40267790 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"
2020-01-17 10:22:33 +01:00
Laurent Montel 932cec415e Don't use nullptr as flags 2020-01-16 07:15:34 +01:00
Kai Uwe Broulik 643a080410 Port SearchLineWidget to use KBusyIndicatorWidget
It's a lot nicer than manually painting a KPixmapSequence and supports high dpi out of the box.

The new code requires Frameworks >= 5.61, it is therefore only enabled
if at least that Frameworks version is available.
2020-01-15 11:48:23 +01:00
Albert Astals Cid 75aa4ad8e3 Merge remote-tracking branch 'origin/release/19.12' 2020-01-11 19:49:36 +01:00
Albert Astals Cid d7e9be4f8c Fix PartTest::testAnnotWindow
By waiting for the delayResizeEventTimer to trigger
2020-01-11 19:49:16 +01:00
kezi olio 09cb524f17 Fix Back and Forward navigation 2020-01-11 07:58:39 +00:00
l10n daemon script 204653e2c3 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"
2020-01-09 09:37:27 +01:00
l10n daemon script 64e90432d0 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"
2020-01-09 05:45:18 +01:00
Albert Astals Cid be8e5710d4 Require poppler >= 0.62
It's the one that comes with our "minimum" requirement Ubuntu 16.04

Cleans up the code a bit
2020-01-09 00:01:43 +00:00
Yuri Chornoivan ca2df22931 Add info about the new 'Undo close tab' menu item and closing tabs with MMB 2020-01-08 21:46:06 +02:00
Albert Astals Cid 88e5775f34 Merge remote-tracking branch 'origin/release/19.12' 2020-01-07 23:28:40 +01:00
Albert Astals Cid 45303be62c "Fix" PartTest::testAdditionalActionTriggers
By waiting for the delayResizeEventTimer to trigger before starting the
test.

The test "randomly" failed before, which shows there's an actual bug in
the code, but the actual bug is "if you are moving the mouse over a
field that has a on focus action and at that very same time the
delayResizeEventTimer triggers, the action won't be executed".

That's almost impossible to reproduce in real life so i'm going to
pretend the bug is not there for all purposes
2020-01-07 23:27:32 +01:00
Bob Bai 60f1fa790c Enable closing a tab by middle click
Some discussions at https://phabricator.kde.org/D25484.

This MR adds:

* mouse middle button event handler for closing a tab
* an `undo close tab` action

Test plan:

1. Compile and install.
2. Enable `Open new files in tabs`.
3. Open two documents. They should be opened in two tabs in the same window.
4. Middle click one of the tabs. It should be closed.
5. Choose `File`-`Undo close tab`. The closed tab should be reopened.
6. Middle click one of the tabs. It should be closed.
7. Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd>. The closed tab should be reopened.
2020-01-06 15:07:51 -07:00
Christoph Feck 475652a990 Update Appstream for new release 2020-01-06 14:55:05 +01:00
Christoph Feck 86fed6e905 GIT_SILENT Upgrade KDE Applications version to 19.12.1. 2020-01-05 05:35:55 +01:00
l10n daemon script 2fc22344e3 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"
2020-01-03 09:44:10 +01:00
l10n daemon script 4c46aabe2e 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"
2020-01-03 05:59:22 +01:00
Albert Astals Cid 2e46cf22f5 CI: enable clang tidy performance checks 2020-01-02 14:27:11 +01:00
Albert Astals Cid 00ac89d7b5 test: Move the wait for pixmap to earlier in the test
Maybe this fixes the unstability on the CI?
2019-12-29 00:32:10 +01:00
Albert Astals Cid 5b5ef039cb Add test that opens the print preview dialog
At least this way we may find earlier gross mistakes like the one
causing bug 415340

CCBUGS: 415340
2019-12-28 23:43:25 +01:00
Albert Astals Cid 1ad74b6c0a Merge remote-tracking branch 'origin/release/19.12' 2019-12-28 23:43:07 +01:00
Albert Astals Cid 6e170312d8 Fix crash when closing print preview dialog
BUGS: 415340
2019-12-28 23:28:18 +01:00
Albert Astals Cid b001ea2019 CI: Enable a bunch of bugprone- clang-tidy warnings 2019-12-24 10:18:16 +00:00
Albert Astals Cid 8d6109de65 Merge remote-tracking branch 'origin/release/19.12' 2019-12-24 11:13:36 +01:00
Antonio Rojas feb72a016f Fix man page formatting
Remove indentation that breaks formatting when compiling with namespaced stylesheets.

BUG: 415468

Differential Revision: https://phabricator.kde.org/D26190

(cherry picked from commit 9ac31982c5)
2019-12-24 11:12:24 +01:00