Changeset View
Changeset View
Standalone View
Standalone View
mobile/components/DocumentView.qml
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public | 14 | * You should have received a copy of the GNU General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.2 | 20 | import QtQuick 2.2 | ||
21 | import QtQuick.Controls 1.2 as QtControls | 21 | import QtQuick.Controls 2.2 as QQC2 | ||
22 | import org.kde.okular 2.0 | 22 | import org.kde.okular 2.0 | ||
23 | import "./private" | 23 | import "./private" | ||
24 | 24 | | |||
25 | /** | 25 | /** | ||
26 | * A touchscreen optimized view for a document | 26 | * A touchscreen optimized view for a document | ||
27 | * | 27 | * | ||
28 | * It supports changing pages by a swipe gesture, pinch zoom | 28 | * It supports changing pages by a swipe gesture, pinch zoom | ||
29 | * and flicking to scroll around | 29 | * and flicking to scroll around | ||
30 | */ | 30 | */ | ||
31 | QtControls.ScrollView { | 31 | QQC2.ScrollView { | ||
32 | id: root | 32 | id: root | ||
33 | property DocumentItem document | 33 | property DocumentItem document | ||
34 | property PageItem page: mouseArea.currPageDelegate.pageItem | 34 | property PageItem page: mouseArea.currPageDelegate.pageItem | ||
35 | signal clicked | 35 | signal clicked | ||
36 | 36 | | |||
37 | //NOTE: on some themes it tries to set the flickable to interactive | 37 | //NOTE: on some themes it tries to set the flickable to interactive | ||
38 | //but we need it always non interactive as we need to manage | 38 | //but we need it always non interactive as we need to manage | ||
39 | //dragging by ourselves | 39 | //dragging by ourselves | ||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |