Commit graph

17 commits

Author SHA1 Message Date
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
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
Aleix Pol 374d953e39 QtQuick: remove unnecessary use of QQuickPixmapItem
It was already ported to render into a pixmap, so just pass that pixmap
as a texture.
2018-04-25 17:27:10 +02:00
Aleix Pol 84854afb64 QtQuick: Only emit when there's something to change 2018-04-25 16:01:19 +02:00
Aleix Pol a7b165c0f2 QtQuick: Adopt more assertive behavior upon document change
Don't change all pages to 0, it should be the application currentPage to
change. Otherwise we get to having 3 items at page 0.
2018-04-25 16:01:19 +02:00
Aleix Pol 19222f27ca QtQuick: fix visual corruption
Don't request async pixmaps then render them straight away.
2018-04-25 16:01:19 +02:00
Aleix Pol c51419dd9f QtQuick: use the right bounds when painting
Use textureSize as the documentation suggests, contentsSize is
deprecated.
Sometimes this size is invalid, use textureSize in such case.
2018-04-25 16:01:19 +02:00
Marco Martin 71f870836e upport high dpi 2018-04-18 16:57:27 +02:00
Kevin Funk a53a2402ca clang-tidy: modernize-use-nullptr run
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Dan Leinir Turthra Jensen d01a5704bf Avoid a crash occurring when pushing the components a little hard
The situation described here occurs in particular when first increasing
the size of the component considerably, and then reducing it again
(such as switching to and from full screen in some application)
Error discovered in Peruse, but will happen elsewhere as well.
2016-04-25 08:28:50 +01:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Marco Martin 5ba5e2189c rename from active to mobile 2015-08-05 16:54:48 +02:00
Renamed from active/components/pageitem.cpp (Browse further)