diff options
Diffstat (limited to 'prototype_2016/third_party/fluid/demo/CompoundComponents.qml')
-rw-r--r-- | prototype_2016/third_party/fluid/demo/CompoundComponents.qml | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/prototype_2016/third_party/fluid/demo/CompoundComponents.qml b/prototype_2016/third_party/fluid/demo/CompoundComponents.qml deleted file mode 100644 index 2cea4a5..0000000 --- a/prototype_2016/third_party/fluid/demo/CompoundComponents.qml +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of Fluid. | ||
3 | * | ||
4 | * Copyright (C) 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | ||
5 | * | ||
6 | * $BEGIN_LICENSE:MPL2$ | ||
7 | * | ||
8 | * This Source Code Form is subject to the terms of the Mozilla Public | ||
9 | * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
10 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
11 | * | ||
12 | * $END_LICENSE$ | ||
13 | */ | ||
14 | |||
15 | import QtQuick 2.0 | ||
16 | import QtQuick.Controls 2.0 | ||
17 | import QtQuick.Controls.Material 2.0 | ||
18 | import QtQuick.Controls.Universal 2.0 | ||
19 | import Fluid.Controls 1.0 | ||
20 | import "Pages/Compound" | ||
21 | |||
22 | Tab { | ||
23 | title: qsTr("Compound Components") | ||
24 | |||
25 | Pane { | ||
26 | id: listPane | ||
27 | anchors { | ||
28 | left: parent.left | ||
29 | top: parent.top | ||
30 | bottom: parent.bottom | ||
31 | } | ||
32 | width: 200 | ||
33 | padding: 0 | ||
34 | z: 2 | ||
35 | |||
36 | Material.background: "white" | ||
37 | Material.elevation: 1 | ||
38 | |||
39 | Universal.background: Universal.accent | ||
40 | |||
41 | ListView { | ||
42 | id: listView | ||
43 | anchors.fill: parent | ||
44 | currentIndex: 0 | ||
45 | model: ListModel { | ||
46 | ListElement { title: qsTr("ListItem"); source: "qrc:/Pages/Compound/ListItemPage.qml" } | ||
47 | ListElement { title: qsTr("Card"); source: "qrc:/Pages/Compound/CardPage.qml" } | ||
48 | ListElement { title: qsTr("InfoBar"); source: "qrc:/Pages/Compound/InfoBarPage.qml" } | ||
49 | } | ||
50 | header: Subheader { | ||
51 | text: qsTr("Demos") | ||
52 | } | ||
53 | delegate: ListItem { | ||
54 | text: model.title | ||
55 | highlighted: ListView.isCurrentItem | ||
56 | onClicked: { | ||
57 | listView.currentIndex = index | ||
58 | stackView.push(model.source) | ||
59 | } | ||
60 | } | ||
61 | |||
62 | ScrollBar.vertical: ScrollBar {} | ||
63 | } | ||
64 | } | ||
65 | |||
66 | StackView { | ||
67 | id: stackView | ||
68 | anchors { | ||
69 | left: listPane.right | ||
70 | top: parent.top | ||
71 | right: parent.right | ||
72 | bottom: parent.bottom | ||
73 | } | ||
74 | initialItem: ListItemPage {} | ||
75 | } | ||
76 | } | ||