Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/viewers/cbr.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 CBR style books. | ||||
29 | * | ||||
30 | * It is called from Book when the opened book is one of the following files: | ||||
31 | * - application/x-cbz | ||||
32 | * - application/x-cbr | ||||
33 | * - application/vnd.comicbook+zip | ||||
34 | * - application/vnd.comicbook+rar | ||||
35 | */ | ||||
28 | ViewerBase { | 36 | ViewerBase { | ||
29 | id: root; | 37 | id: root; | ||
30 | property string title: imageBrowser.model.title; | 38 | property string title: imageBrowser.model.title; | ||
31 | pagesModel: imageBrowser.model; | 39 | pagesModel: imageBrowser.model; | ||
32 | pageCount: imageBrowser.model.pageCount; | 40 | pageCount: imageBrowser.model.pageCount; | ||
33 | onRtlModeChanged: { | 41 | onRtlModeChanged: { | ||
34 | if(rtlMode === true) { | 42 | if(rtlMode === true) { | ||
35 | imageBrowser.layoutDirection = Qt.RightToLeft; | 43 | imageBrowser.layoutDirection = Qt.RightToLeft; | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |