summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Desktop
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2014-10-22 16:32:59 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-22 17:55:30 +0200
commit11ff483c564b8a2f5b3ef5e28230fbfc742a2cd2 (patch)
tree54675af87e1ac310ec89b98a053be57041c7c37f /src/controls/Styles/Desktop
parent01b85cc9a8ee586cf8fb3bb4d22cc4cf7de32899 (diff)
downloadqtquickcontrols-11ff483c564b8a2f5b3ef5e28230fbfc742a2cd2.tar.gz
TableViewStyle: Fix and document styleData.hasActiveFocus property
The property has been present since 5.1 for rowDelegate and missing for itemDelegate. Also, the property was incorrectly bound to the table having active focus instead of the row. Change-Id: I43a93975dffd849b37cfee6363343f8aef57d11b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/Styles/Desktop')
-rw-r--r--src/controls/Styles/Desktop/TableViewStyle.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/Styles/Desktop/TableViewStyle.qml b/src/controls/Styles/Desktop/TableViewStyle.qml
index 605c62d6..11f8ed54 100644
--- a/src/controls/Styles/Desktop/TableViewStyle.qml
+++ b/src/controls/Styles/Desktop/TableViewStyle.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Quick Controls module of the Qt Toolkit.
@@ -82,7 +82,7 @@ ScrollViewStyle {
visible: styleData.selected || styleData.alternate
source: "image://__tablerow/" + (styleData.alternate ? "alternate_" : "")
+ (styleData.selected ? "selected_" : "")
- + (styleData.hasActiveFocus ? "active" : "")
+ + (control.activeFocus ? "active" : "")
height: Math.max(16, RowItemSingleton.implicitHeight)
border.left: 4 ; border.right: 4
}