Commit 4cb4baf3 authored by Chupligin Sergey's avatar Chupligin Sergey

[Tabs] fix issue #3

parent 0788338b
...@@ -74,23 +74,23 @@ Page { ...@@ -74,23 +74,23 @@ Page {
frame: Item { } frame: Item { }
tab: Item { tab: Item {
implicitWidth: control.width/control.count implicitWidth: control.width/control.count
implicitHeight: 50 implicitHeight: size.dp(50)
BorderImage { BorderImage {
anchors.fill: parent anchors.fill: parent
border.bottom: 8 border.bottom: size.dp(8)
border.top: 8 border.top: size.dp(8)
source: styleData.selected ? "../images/tab_selected.png":"../images/tabs_standard.png" source: styleData.selected ? "../images/tab_selected.png":"../images/tabs_standard.png"
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
color: "white" color: "white"
text: styleData.title.toUpperCase() text: styleData.title.toUpperCase()
font.pixelSize: 16 font.pixelSize: size.dp(16)
} }
Rectangle { Rectangle {
visible: index > 0 visible: index > 0
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.margins: 10 anchors.margins: size.dp(10)
width:1 width:1
color: "#3a3a3a" color: "#3a3a3a"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment