Commit d94eee92 authored by Sergey Chupligin's avatar Sergey Chupligin

[ButtonRow] Fix ButtonRow guidline

parent 68f4f73b
...@@ -34,7 +34,7 @@ import QtQuick.Controls.Styles.Nemo 1.0 ...@@ -34,7 +34,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
Rectangle { Rectangle {
id: main id: main
width: 440 width: childrenRect.width
color: "#313131" color: "#313131"
height: 40 height: 40
property ListModel model: ListModel {} property ListModel model: ListModel {}
...@@ -55,7 +55,9 @@ Rectangle { ...@@ -55,7 +55,9 @@ Rectangle {
Rectangle { Rectangle {
property bool active: false property bool active: false
height: 50 height: 50
width: 20*name.length y: -5
width: text.width+(text.width/name.length*2)
color: "transparent" color: "transparent"
MouseArea { MouseArea {
enabled: main.enabled enabled: main.enabled
...@@ -77,6 +79,10 @@ Rectangle { ...@@ -77,6 +79,10 @@ Rectangle {
Label { Label {
id: text id: text
text: name text: name
anchors.horizontalCenter: parent.horizontalCenter
Component.onCompleted: {
width = paintedWidth
}
} }
} }
} }
......
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