Yuri Chornoivan
5478b2ec92
Fix minor typos
7 years ago
Aleix Pol
9cafd504c0
Kirigami: Asynchronous request of pixmaps
...
Don't block when reading the document to be able to render
Reviwed by Albert Astals
8 years ago
Aleix Pol
c92397da88
Kirigami: Don't try to render if the item is empty
8 years ago
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
8 years ago
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
8 years ago
Aleix Pol
90f187e360
QtQuick: schedule a texture render when the window changes
...
It needs to the devicePixelRatio to the window where it's in.
8 years ago
Aleix Pol
a082ace479
QtQuick: simplify PageItem
...
Don't compare the limits to itself
8 years ago
Aleix Pol
970e0f2ba9
QtQuick: simplify drawing code
...
Removes a deprecated optimization
8 years ago
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.
8 years ago
Aleix Pol
84854afb64
QtQuick: Only emit when there's something to change
8 years ago
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.
8 years ago
Aleix Pol
19222f27ca
QtQuick: fix visual corruption
...
Don't request async pixmaps then render them straight away.
8 years ago
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.
8 years ago
Marco Martin
71f870836e
upport high dpi
8 years ago
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
9 years ago
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.
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Marco Martin
5ba5e2189c
rename from active to mobile
11 years ago
Marco Martin
511054c423
set the contents size as the full size
...
crash--
11 years ago
Montel Laurent
ae30a7fc51
USe new connect api
11 years ago
Lukáš Tinkl
fd6a35486e
port KUrl -> QUrl
11 years ago
Aleix Pol
71dd075437
fix build
11 years ago
Marco Martin
3d50fec102
initial port of QML components to QtQuick2
...
this is an initial port of the qml component set of okular to qtquick2
it's straightforward, except pageitem that right now is a qquickpainteditem, that works fine, but a bit slower than generating and uploading the textures by hand (that may be an eventual future port)
the okular active application is still missing, but the components can be used from anywhere in qml
REVIEW:121326
11 years ago
Frederik Gladhorn
83d3f1f6b7
Revert "Some more kDebug->qDebug"
...
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.
This reverts commit 34fbdf8c85 .
12 years ago
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
12 years ago
Vishesh Handa
a034265e75
QML PageItem: Handle document path changes
...
PageItem works quite well if the DocumentItem has the path on
construction, but it does not update if the path is initially blank and
then later changed.
REVIEW: 115751
12 years ago
Albert Astals Cid
541650a4f4
Remove the concept of observer/view id
...
Just use the pointer as id :-)
This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future
Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
13 years ago
Marco Martin
6041b31e43
go to exact bookmark point if possible
14 years ago
Marco Martin
6de4500fd1
bookmarkPosition function
14 years ago
Marco Martin
f59404ed02
expose complete url
14 years ago
Aaron Seigo
e82ee0f7e3
set an interval on the timer
14 years ago
Aaron Seigo
11bb8c0a7d
avoid some redraws
14 years ago
Aaron Seigo
863e34dc7a
put the thumbnail setting into PageItem as bookkeeping is helpful here
14 years ago
Aaron Seigo
973e9a28b8
fix off by one -> page is zeroth counted, number of pages obviously starts at 1
14 years ago
Aaron Seigo
6da814a022
don't clear prior requests when requesting thumbnails
...
this fixes the "some thumbnails don't show up" bug :)
14 years ago
Marco Martin
ae5ddd097c
support bookmarks with complete viewport
14 years ago
Marco Martin
cbe00442f5
relicense to gpl as the rest of okular
14 years ago
Marco Martin
0934b778b1
use the version of PagePainter from ui
14 years ago
Marco Martin
8196b9db28
sort bookmark list
...
connect to the right signal
14 years ago
Marco Martin
adabbf5fb5
api for setting/unsetting bookmarks
14 years ago
Aaron Seigo
a1ec69a146
only paint the exposed area
14 years ago
Aaron Seigo
2119bb4e02
try to limit pixmap requests
14 years ago
Aaron Seigo
4c17d117b0
Revert "only repaint on things the app cares about"; turns out pagepainter does care about all changes
...
This reverts commit ac5c4364b7 .
14 years ago
Aaron Seigo
ac5c4364b7
only repaint on things the app cares about
14 years ago
Aaron Seigo
c6ad83e189
m_pixmap is no longer necessary either
14 years ago
Aaron Seigo
8a9d9a54a8
and yet more repaints go bye-bye
14 years ago
Aaron Seigo
b59578a149
and now i get actual content on the screen
14 years ago
Aaron Seigo
5c5b9deec8
if the painter is already AA'd, don't save/restore painter state
14 years ago
Aaron Seigo
a92af5b5a4
reset the page pointer when the document changes
14 years ago
Marco Martin
abca7780ad
try to cache the rendered page to see if zooming speed improves
14 years ago