aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication/main.qml
blob: 58f1af504e882d7a26b4f39899685700c1c83d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3

import CursorNavigation 1.0
import controls 1.0
import "pages"

ApplicationWindow {
    id: window
    width: 800
    height: 600
    visible: true
    title: qsTr("Cursor Navigation Demo Application")

    header: TabBar {
        id: tabBar
        width: parent.width
        CNTabButton {
            text: qsTr("Page 1")
        }
        CNTabButton {
            text: qsTr("Page 2")
        }
        CNTabButton {
            text: qsTr("Page 3")
        }
        CNTabButton {
            text: qsTr("Page 4")
        }
        CNTabButton {
            text: qsTr("Page 5")
        }
        CNTabButton {
            text: qsTr("Map")
        }
    }

    contentData: StackLayout {
        anchors.fill: parent
        currentIndex: tabBar.currentIndex
        Page1 { }
        Page2 { }
        Page3 { }
        Page4 { }
        Page5 { }
        Page6 { }
    }
}