Changeset View
Changeset View
Standalone View
Standalone View
kcms/new-keyboard/package/contents/ui/main.qml
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Roman Gilg <subdiff@gmail.com> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | *********************************************************************/ | ||||
17 | import QtQuick 2.1 | ||||
18 | import QtQuick.Layouts 1.3 | ||||
19 | import QtQuick.Controls 2.3 as Controls | ||||
20 | import org.kde.kirigami 2.3 as Kirigami | ||||
21 | import org.kde.kcm 1.1 as KCM | ||||
22 | | ||||
23 | Item { | ||||
24 | | ||||
25 | Controls.TabBar { | ||||
26 | id: tabbar | ||||
27 | anchors.top: parent.top | ||||
28 | anchors.left: parent.left | ||||
29 | anchors.right: parent.right | ||||
30 | width: parent.width | ||||
31 | Controls.TabButton { | ||||
32 | text: i18n("Hardware") | ||||
33 | } | ||||
34 | Controls.TabButton { | ||||
35 | text: i18n("Layouts") | ||||
36 | } | ||||
37 | Controls.TabButton { | ||||
38 | text: i18n("Advanced") | ||||
39 | } | ||||
40 | } | ||||
41 | | ||||
42 | StackLayout { | ||||
43 | anchors.top: tabbar.bottom | ||||
44 | anchors.left: parent.left | ||||
45 | anchors.right: parent.right | ||||
46 | anchors.bottom: parent.bottom | ||||
47 | | ||||
48 | currentIndex: tabbar.currentIndex | ||||
49 | | ||||
50 | Hardware {} | ||||
51 | | ||||
52 | Layouts {} | ||||
53 | | ||||
54 | Advanced {} | ||||
55 | } | ||||
56 | } |