checked property works also without tabgroup
This commit is contained in:
parent
dcfe086014
commit
c71f8f509f
@ -83,7 +83,8 @@ Item {
|
|||||||
|
|
||||||
// Common Public API
|
// Common Public API
|
||||||
property Item tab
|
property Item tab
|
||||||
property bool checked: internal.tabGroup != null && internal.tabGroup.currentTab == tab
|
property bool checked: (internal.tabGroup == null) ? (root.parent.parent.currentTab == root) : (internal.tabGroup.currentTab == tab)
|
||||||
|
|
||||||
property bool pressed: mouseArea.pressed == true && mouseArea.containsMouse
|
property bool pressed: mouseArea.pressed == true && mouseArea.containsMouse
|
||||||
property alias text: label.text
|
property alias text: label.text
|
||||||
property alias iconSource: imageLoader.source
|
property alias iconSource: imageLoader.source
|
||||||
|
Loading…
Reference in New Issue
Block a user