Commit cf0d70e0 authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

Desktop styles: fix warnings when parent is not set


Change-Id: I80d3b3e1914439a9c36655c0b7f2e722fb23dc1c
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 04c5ea8d
No related merge requests found
Showing with 3 additions and 4 deletions
......@@ -49,8 +49,7 @@ Style {
implicitWidth: 115
implicitHeight: styleItem.implicitHeight
width: parent.width
height: parent.height
anchors.fill: parent
StyleItem {
id: styleItem
......
......@@ -64,7 +64,7 @@ Style {
width: implicitWidth + pixelMetric("menubaritemspacing")
enabled: menuItem.enabled
selected: parent.selected || sunken
sunken: parent.sunken
selected: (parent && parent.selected) || sunken
sunken: parent && parent.sunken
}
}
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