Changeset View
Changeset View
Standalone View
Standalone View
src/qml/Main.qml
1 | import QtQuick 2.5 | 1 | import QtQuick 2.5 | ||
---|---|---|---|---|---|
2 | import QtQuick.Controls 1.1 | 2 | import QtQuick.Controls 1.1 | ||
3 | import QtQuick.Controls 2.0 as QQC2 | 3 | import QtQuick.Controls 2.0 as QQC2 | ||
4 | import QtQuick.Layouts 1.1 | 4 | import QtQuick.Layouts 1.1 | ||
5 | import QtQuick.Window 2.2 | 5 | import QtQuick.Window 2.2 | ||
6 | import KamosoQtGStreamer 1.0 | 6 | import KamosoQtGStreamer 1.0 | ||
7 | import org.kde.kirigami 2.0 as Kirigami | 7 | import org.kde.kirigami 2.9 as Kirigami | ||
8 | import org.kde.kamoso 3.0 | 8 | import org.kde.kamoso 3.0 | ||
9 | 9 | | |||
10 | Kirigami.ApplicationWindow | 10 | Kirigami.ApplicationWindow | ||
11 | { | 11 | { | ||
12 | id: root | 12 | id: root | ||
13 | visible: true | 13 | visible: true | ||
14 | title: i18n("Kamoso") | 14 | title: i18n("Kamoso") | ||
15 | pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.None | 15 | pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.None | ||
▲ Show 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | 142 | contentItem: ImagesView { | |||
146 | nameFilter: root.pageStack.currentItem.actions.main.nameFilter | 146 | nameFilter: root.pageStack.currentItem.actions.main.nameFilter | ||
147 | } | 147 | } | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | globalDrawer: Kirigami.OverlayDrawer { | 150 | globalDrawer: Kirigami.OverlayDrawer { | ||
151 | edge: Qt.LeftEdge | 151 | edge: Qt.LeftEdge | ||
152 | drawerOpen: false | 152 | drawerOpen: false | ||
153 | handleVisible: true | 153 | handleVisible: true | ||
154 | // TODO: add this once Kirigami gains support for customizing | 154 | handleClosedIcon.source: "special-effects-symbolic" | ||
155 | // globalDrawer handle icons in https://bugs.kde.org/show_bug.cgi?id=405598 | 155 | handleOpenIcon.source: "view-left-close" | ||
156 | // handleClosedIcon.source: "special-effects-symbolic" | | |||
157 | modal: true | 156 | modal: true | ||
158 | width: Kirigami.Units.gridUnit * 20 | 157 | width: Kirigami.Units.gridUnit * 20 | ||
159 | 158 | | |||
160 | leftPadding: Kirigami.Units.smallSpacing | 159 | leftPadding: Kirigami.Units.smallSpacing | ||
161 | topPadding: Kirigami.Units.smallSpacing | 160 | topPadding: Kirigami.Units.smallSpacing | ||
162 | rightPadding: Kirigami.Units.smallSpacing | 161 | rightPadding: Kirigami.Units.smallSpacing | ||
163 | bottomPadding: Kirigami.Units.smallSpacing | 162 | bottomPadding: Kirigami.Units.smallSpacing | ||
164 | 163 | | |||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |