aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/TabBar.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-30 10:41:30 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-30 20:53:50 +0000
commite965bf6aef2b1f0237f94d0c9f4392f5859ac2cc (patch)
tree4166e950257ff6fc23f39f491df1ca3ba53f57c2 /src/imports/controls/TabBar.qml
parent2ba8261fee95cca0d119879a95f871133f0b51d5 (diff)
Remove TabBar::highlight
It could have been a convenient way to customize the default highlight, but let's not expose an alias to a replaceable content item. The alias might become invalid and meaningless, depending on what kind of content item the replacement is. Thus, remove the content item identifier to avoid the pitfall in the future. Change-Id: I65d66e21b57a21a87cba03c5f5825d18092d0c39 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/TabBar.qml')
-rw-r--r--src/imports/controls/TabBar.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/imports/controls/TabBar.qml b/src/imports/controls/TabBar.qml
index 229e5f68..fb541388 100644
--- a/src/imports/controls/TabBar.qml
+++ b/src/imports/controls/TabBar.qml
@@ -40,8 +40,6 @@ import QtQuick.Controls 2.0
AbstractTabBar {
id: control
- property alias highlight: listView.highlight
-
implicitWidth: Math.max(background ? background.implicitWidth : 0,
contentItem.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0,
@@ -53,16 +51,14 @@ AbstractTabBar {
//! [contentItem]
contentItem: ListView {
- id: listView
+ model: control.contentModel
+ currentIndex: control.currentIndex
spacing: control.spacing
orientation: ListView.Horizontal
boundsBehavior: Flickable.StopAtBounds
snapMode: ListView.SnapToItem
- model: control.contentModel
- currentIndex: control.currentIndex
-
highlightMoveDuration: 250
highlightResizeDuration: 0
highlightFollowsCurrentItem: true