diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-27 10:39:51 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-27 11:52:43 (GMT) |
commit | 5ff7b773a0f59e174001da1f0550a7f0c2b6f485 (patch) | |
tree | eae96c4bed07a43fccff54ada1ce99e5d750403f /src/gui/itemviews/qtreeview_p.h | |
parent | 11b1ced7cdc2af028164381d43c146ec79919f19 (diff) | |
download | Qt-5ff7b773a0f59e174001da1f0550a7f0c2b6f485.zip Qt-5ff7b773a0f59e174001da1f0550a7f0c2b6f485.tar.gz Qt-5ff7b773a0f59e174001da1f0550a7f0c2b6f485.tar.bz2 |
Fixes QTreeView: stylesheet :has-children pseudo selector doesn't works for the ::item pseudo-class
The State_Children was not set on the QStyleOption.
Refactorized a little bit the way it was computed.
Reviewed-by: Thierry
Task-number: 234930
Task-number: QTBUG-3129
Diffstat (limited to 'src/gui/itemviews/qtreeview_p.h')
-rw-r--r-- | src/gui/itemviews/qtreeview_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtreeview_p.h b/src/gui/itemviews/qtreeview_p.h index def8253..f89c328 100644 --- a/src/gui/itemviews/qtreeview_p.h +++ b/src/gui/itemviews/qtreeview_p.h @@ -66,7 +66,8 @@ struct QTreeViewItem QModelIndex index; // we remove items whenever the indexes are invalidated uint expanded : 1; uint spanning : 1; - uint total : 30; // total number of children visible + uint hasChildren : 1; // if the item has visible children (even if collapsed) + uint total : 29; // total number of children visible uint level : 16; // indentation int height : 16; // row height }; |