Changeset View
Changeset View
Standalone View
Standalone View
src/creator/qml/Book.qml
Show All 22 Lines | |||||
23 | import QtQuick.Controls 2.2 as QtControls | 23 | import QtQuick.Controls 2.2 as QtControls | ||
24 | 24 | | |||
25 | import org.kde.kirigami 2.1 as Kirigami | 25 | import org.kde.kirigami 2.1 as Kirigami | ||
26 | import org.kde.peruse 0.1 as Peruse | 26 | import org.kde.peruse 0.1 as Peruse | ||
27 | 27 | | |||
28 | Kirigami.ScrollablePage { | 28 | Kirigami.ScrollablePage { | ||
29 | id: root; | 29 | id: root; | ||
30 | property string categoryName: "book"; | 30 | property string categoryName: "book"; | ||
31 | title: i18nc("title of the main book editor page", "Editing %1").arg(bookModel.title == "" ? root.filename : bookModel.title); | 31 | title: i18nc("title of the main book editor page", "Editing %1", bookModel.title == "" ? root.filename : bookModel.title); | ||
32 | property string filename; | 32 | property string filename; | ||
33 | 33 | | |||
34 | actions { | 34 | actions { | ||
35 | left: addPageSheet.opened ? null : saveBookAction; | 35 | left: addPageSheet.opened ? null : saveBookAction; | ||
36 | main: addPageSheet.opened ? closeAddPageSheetAction : defaultMainAction; | 36 | main: addPageSheet.opened ? closeAddPageSheetAction : defaultMainAction; | ||
37 | right: addPageSheet.opened ? null : addPageAction; | 37 | right: addPageSheet.opened ? null : addPageAction; | ||
38 | } | 38 | } | ||
39 | Kirigami.Action { | 39 | Kirigami.Action { | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |