Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/viewers/folderofimages.qml
Show All 18 Lines | |||||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.1 | 22 | import QtQuick 2.1 | ||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Controls 1.0 | 24 | import QtQuick.Controls 1.0 | ||
25 | 25 | | |||
26 | import org.kde.peruse 0.1 as Peruse | 26 | import org.kde.peruse 0.1 as Peruse | ||
27 | 27 | /** | |||
28 | * @brief a ViewerBase for books that are folders with images. | ||||
29 | * | ||||
30 | * It is called from Book when the opened book is one of the following files: | ||||
31 | * - inode/directory | ||||
32 | * - image/jpeg | ||||
33 | * - image/png | ||||
34 | */ | ||||
28 | ViewerBase { | 35 | ViewerBase { | ||
29 | id: root; | 36 | id: root; | ||
30 | property string title: imageBrowser.model.title; | 37 | property string title: imageBrowser.model.title; | ||
31 | pagesModel: imageBrowser.model; | 38 | pagesModel: imageBrowser.model; | ||
32 | pageCount: imageBrowser.model.pageCount; | 39 | pageCount: imageBrowser.model.pageCount; | ||
33 | onRtlModeChanged: { | 40 | onRtlModeChanged: { | ||
34 | if(rtlMode === true) { | 41 | if(rtlMode === true) { | ||
35 | imageBrowser.layoutDirection = Qt.RightToLeft; | 42 | imageBrowser.layoutDirection = Qt.RightToLeft; | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |