Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/viewers/ImageBrowser.qml
Context not available. | |||||
23 | // import QtQuick.Layouts 1.1 | 23 | // import QtQuick.Layouts 1.1 | ||
---|---|---|---|---|---|
24 | // import QtQuick.Controls 1.0 as QtControls | 24 | // import QtQuick.Controls 1.0 as QtControls | ||
25 | 25 | | |||
26 | /** | ||||
27 | * @brief The image viewer used by the CBR and Folder Viewer Base classes. | ||||
28 | * | ||||
29 | * It handles drawing the image and the different zoom modes. | ||||
30 | */ | ||||
26 | ListView { | 31 | ListView { | ||
27 | id: root | 32 | id: root | ||
28 | signal goNextPage(); | 33 | signal goNextPage(); | ||
Context not available. | |||||
43 | currentIndex = indexHere; | 48 | currentIndex = indexHere; | ||
44 | } | 49 | } | ||
45 | } | 50 | } | ||
46 | 51 | /** | |||
52 | * An interactive area with an image. | ||||
53 | * | ||||
54 | * Clicking once on the image will hide all other controls from view. | ||||
55 | * Clicking twice will instead zoom in. | ||||
56 | * | ||||
57 | * Pinch will zoom in as well. | ||||
58 | */ | ||||
47 | delegate: Flickable { | 59 | delegate: Flickable { | ||
48 | id: flick | 60 | id: flick | ||
49 | width: imageWidth | 61 | width: imageWidth | ||
Context not available. |