diff options
| author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2014-10-21 15:22:49 +0200 |
|---|---|---|
| committer | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2014-10-22 11:29:56 +0200 |
| commit | e55cfb538594afe1928a845abc4a45d4935309d3 (patch) | |
| tree | 4dea7a798b4767350a2f2de70618029bcf6bb230 /src/controls/TableView.qml | |
| parent | e64180b65cd9dfc2ff008dc5725ff0e58a833cd7 (diff) | |
TableView: Raise focused and selected rows
Generally, styles give more emphasis to focused and selected rows in tables.
To help implement such styles, we raise those rows as follow. Focused rows
get a z-value of 0.7, selected rows, 0.5, and the rest a z-value of 0 (which
is the default).
[ChangeLog][TableView] Raise focus and selected rows above other rows
Change-Id: I215249781466d21c28de3cd1805b6d08d83ac856
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/TableView.qml')
| -rw-r--r-- | src/controls/TableView.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml index 7bcd311e1..a10972531 100644 --- a/src/controls/TableView.qml +++ b/src/controls/TableView.qml @@ -843,6 +843,7 @@ ScrollView { id: rowItemContainer activeFocusOnTab: false + z: rowItem.activeFocus ? 0.7 : rowItem.itemSelected ? 0.5 : 0 property Item rowItem // We recycle instantiated row items to speed up list scrolling |
