Commit Graph

18 Commits

Author SHA1 Message Date
Jonah Brüchert
d90fe61b37 mobile: Clip DocumentView 2024-07-03 22:02:13 +00:00
Jonah Brüchert
dc93a212f7 mobile: Fix qml warnings 2024-07-03 22:02:13 +00:00
Albert Astals Cid
a9c7834a4f mobile: Update imports to the minimum required versions on the cmake side 2022-01-26 14:26:47 +01:00
Albert Astals Cid
8681bc0223 Okular Mobile: Require Qt 5.15.2
Removes the smooth property of PageItem since it was never set and clazy
was complaining about it not having a NOTIFY signal

Remove two signals that already exist in parent class

Fix C++11 detach in range-loop
2021-12-28 09:06:01 +00:00
Alexander Lohnau
2f193a63de Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
Jonah Brüchert
c1b396af3e
mobile: fully port to QQC2
Summary: Remove all QtQuick Controls 1 imports and replace by QtQuick Controls 2

Test Plan: The mobile app behaves just as before

Reviewers: #okular, ngraham

Reviewed By: ngraham

Subscribers: ngraham, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D21675
2019-06-10 20:59:15 +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
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
Aleix Pol
bf6f5f74dc QtQuick: Don't reset zoom when scrollbars appear 2018-04-25 18:08:03 +02:00
Marco Martin
954c46ec46 go at beginning of page when switching 2016-05-13 18:07:37 +02:00
Marco Martin
1d5853c2cb better behavior for wheel zoom 2016-05-13 17:19:48 +02:00
Marco Martin
5cc122f021 restore horiz flicking
restore scrolling with mouse wheel
2016-05-13 17:01:17 +02:00
Marco Martin
4bb05056ce support zoom by ctrl+wheel 2016-05-13 16:36:06 +02:00
Marco Martin
6fe6e884d1 make sure horiz scrollbar is off when not needed
size the page correctly to not have the horizontal
scrollbar when not needed, and make sure the flickable
is not interactive, as flicking is managed by hand
with a mousearea
2016-05-13 16:17:26 +02:00
Marco Martin
2b4486a00d adapt to new components API 2015-12-01 17:29:16 +01:00
Marco Martin
c8838e94c9 directly scale the content item when pinching
when pinching, just scale the item, this scales the texture
with the GPU, avoiding costrly redraws.
redraw at the correct size only when the gesture ends
2015-09-25 16:33:46 +02:00
Marco Martin
be805e906e port to Documentview 2015-09-24 20:34:00 +02:00
Marco Martin
79622ee9a3 A touchscreen optimized view for a document
It supports changing pages by a swipe gesture, pinch zoom
and flicking to scroll around.
The mobile application will be ported to this new component
2015-09-24 17:47:26 +02:00