qmlfrontend/main.qml
changeset 14143 745c73e0e644
parent 12854 28cb18c5e712
equal deleted inserted replaced
14142:11202097584f 14143:745c73e0e644
     9   title: qsTr("Hello World")
     9   title: qsTr("Hello World")
    10 
    10 
    11   SwipeView {
    11   SwipeView {
    12     id: swipeView
    12     id: swipeView
    13     anchors.fill: parent
    13     anchors.fill: parent
    14     currentIndex: tabBar.currentIndex
       
    15 
    14 
    16     Page1 {
    15     Page1 {
    17     }
    16     }
    18 
       
    19     Page {
       
    20       Label {
       
    21         text: qsTr("Second page")
       
    22         anchors.centerIn: parent
       
    23       }
       
    24     }
       
    25   }
       
    26 
       
    27   footer: TabBar {
       
    28     id: tabBar
       
    29     currentIndex: swipeView.currentIndex
       
    30     TabButton {
       
    31       text: qsTr("First")
       
    32     }
       
    33     TabButton {
       
    34       text: qsTr("Second")
       
    35     }
       
    36   }
    17   }
    37 }
    18 }