summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/controls/TabView.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml
index 8f09cf3c..3c6da297 100644
--- a/src/controls/TabView.qml
+++ b/src/controls/TabView.qml
@@ -63,7 +63,7 @@ FocusScope {
property int currentIndex: 0
/*! The current tab count */
- property int count: 0
+ readonly property int count: __tabs.count
/*! The visibility of the tab frame around contents */
property bool frameVisible: true
@@ -157,7 +157,6 @@ FocusScope {
var child = __tabs.get(i).tab
child.visible = (i == currentIndex ? true : false)
}
- count = __tabs.count
}
activeFocusOnTab: false