Changeset View
Changeset View
Standalone View
Standalone View
kcms/keyboard/kcmui/package/contents/ui/main.qml
- This file was added.
1 | import QtQuick 2.6 | ||||
---|---|---|---|---|---|
2 | import QtQuick.Layouts 1.3 | ||||
3 | import QtQuick.Controls 2.3 as Controls | ||||
4 | import org.kde.kirigami 2.4 as Kirigami | ||||
5 | import org.kde.kcm 1.2 | ||||
6 | | ||||
7 | Item { | ||||
8 | id: rootItem; | ||||
9 | | ||||
10 | signal changed(); | ||||
11 | | ||||
12 | Controls.TabBar { | ||||
13 | id: tabbar | ||||
14 | anchors.top: parent.top | ||||
15 | anchors.left: parent.left | ||||
16 | anchors.right: parent.right | ||||
17 | width: parent.width | ||||
18 | Controls.TabButton { | ||||
19 | text: i18n("Hardware") | ||||
20 | } | ||||
21 | Controls.TabButton { | ||||
22 | text: i18n("Layouts") | ||||
23 | } | ||||
24 | Controls.TabButton { | ||||
25 | text: i18n("Advanced") | ||||
26 | } | ||||
27 | } | ||||
28 | | ||||
29 | StackLayout { | ||||
30 | anchors.top: tabbar.bottom | ||||
31 | anchors.left: parent.left | ||||
32 | anchors.right: parent.right | ||||
33 | anchors.bottom: parent.bottom | ||||
34 | | ||||
35 | currentIndex: tabbar.currentIndex | ||||
36 | | ||||
37 | Hardware { | ||||
38 | dataModel: kcm.hardwareModel | ||||
39 | onChanged: rootItem.changed(); | ||||
40 | } | ||||
41 | | ||||
42 | Layouts { | ||||
43 | dataModel: kcm.layoutModel | ||||
44 | onChanged: rootItem.changed(); | ||||
45 | } | ||||
46 | | ||||
47 | Advanced { | ||||
48 | dataModel: kcm.advancedModel | ||||
49 | onChanged: rootItem.changed(); | ||||
50 | } | ||||
51 | } | ||||
52 | } |