40 lines
1.2 KiB
QML
40 lines
1.2 KiB
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
property string page: "FavoritesTab.qml"
|
|
property real showP: 0.0
|
|
property int tab: 0
|
|
width: parent.width
|
|
height: Theme.itemSizeMedium//play.height + (Theme.paddingMedium * 2)
|
|
Row {
|
|
id: row
|
|
width: parent.width
|
|
height: parent.height//Theme.itemSizeMedium//play.height + (Theme.paddingMedium * 2)
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
TabButton {
|
|
id: home
|
|
down: tab === 0
|
|
width: parent.width / 3
|
|
// icon: "image://theme/icon-m-home" //"image://theme/icon-m-video"
|
|
text: qsTr("Favorites")
|
|
onButtonClick: {showP=0.0;tab = 0}
|
|
}
|
|
TabButton {
|
|
id: search
|
|
down: tab === 1
|
|
width: parent.width / 3
|
|
// icon: "image://theme/icon-m-search"
|
|
text: qsTr("History")
|
|
onButtonClick: {showP=0.0;tab = 1}
|
|
}
|
|
TabButton {
|
|
id: favorite
|
|
down: tab === 2
|
|
width: parent.width / 3
|
|
// icon: "image://theme/icon-m-favorite"
|
|
text: qsTr("Search")
|
|
onButtonClick: {showP=0.0;tab = 2;console.log("CLICK")}
|
|
}
|
|
}
|
|
}
|