Less warnings in TabButton

This commit is contained in:
Sebastian Kügler 2013-08-27 04:27:28 +02:00
parent fd7ba8497a
commit 19c4b555d5

View File

@ -92,7 +92,7 @@ Item {
opacity: enabled ? 1 : 0.6
//long notation to not make it overwritten by implementations
Connections {
target: root
target: (root != undefined) ? root : undefined
onPressedChanged: {
//TabBar is the granparent
internal.tabBar.currentTab = root
@ -113,7 +113,7 @@ Item {
property Item tabBar: Utils.findParent(root, "currentTab")
property Item tabGroup: Utils.findParent(tab, "currentTab")
property bool portrait: root.height >= label.paintedHeight + 16
property bool portrait: (root != undefined) && (label != undefined) && root.height >= label.paintedHeight + 16
function click() {
root.clicked()