Changeset View
Changeset View
Standalone View
Standalone View
src/data/contents/ui/BaseApp.qml
Show All 16 Lines | |||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.1 | 20 | import QtQuick 2.1 | ||
21 | import QtQuick.Controls 2.0 as Controls | 21 | import QtQuick.Controls 2.0 as Controls | ||
22 | import QtQuick.Layouts 1.2 | 22 | import QtQuick.Layouts 1.2 | ||
23 | import org.kde.kirigami 2.11 as Kirigami | 23 | import org.kde.kirigami 2.11 as Kirigami | ||
24 | import "gallery" | 24 | import "gallery" | ||
25 | import org.kde.kirigami2.gallery 1.0 | ||||
25 | 26 | | |||
26 | Kirigami.ApplicationWindow { | 27 | Kirigami.ApplicationWindow { | ||
27 | id: root | 28 | id: root | ||
28 | 29 | | |||
30 | x: GalleryConfig.windowX | ||||
31 | y: GalleryConfig.windowY | ||||
32 | width: GalleryConfig.windowWidth | ||||
33 | height: GalleryConfig.windowHeight | ||||
34 | | ||||
35 | // This isn't a binding loop, it's a bidirectional binding. | ||||
36 | Binding { target: GalleryConfig; property: "windowX"; value: root.x } | ||||
37 | Binding { target: GalleryConfig; property: "windowY"; value: root.y } | ||||
38 | Binding { target: GalleryConfig; property: "windowWidth"; value: root.width } | ||||
39 | Binding { target: GalleryConfig; property: "windowHeight"; value: root.height } | ||||
40 | | ||||
29 | globalDrawer: Kirigami.GlobalDrawer { | 41 | globalDrawer: Kirigami.GlobalDrawer { | ||
30 | id: globalDrawer | 42 | id: globalDrawer | ||
31 | title: "Widget gallery" | 43 | title: "Widget gallery" | ||
32 | titleIcon: "applications-graphics" | 44 | titleIcon: "applications-graphics" | ||
33 | bannerImageSource: "banner.jpg" | 45 | bannerImageSource: "banner.jpg" | ||
34 | 46 | | |||
35 | showHeaderWhenCollapsed: true | 47 | showHeaderWhenCollapsed: true | ||
36 | header: RowLayout { | 48 | header: RowLayout { | ||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |