summaryrefslogtreecommitdiff
path: root/src/controls/Private/TreeViewItemDelegateLoader.qml
Commit message (Collapse)AuthorAgeFilesLines
* Don't specify null to indicate an invalid QModelIndexAndy Shaw2019-05-201-1/+1
| | | | | | | | | | | | Since this call is done on the C++ side, there is no means to equate null as being the same as QModelIndex(). As that is the default value when calling index(), we can just drop the argument in this case. Change-Id: I97b80064978b7af01f0606ed6f3778349adc4277 Fixes: QTBUG-74523 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-271-1/+1
|\ | | | | | | | | | | | | Conflicts: tests/auto/qquicktreemodeladaptor/tst_qquicktreemodeladaptor.cpp Change-Id: I0b6018fdac65a5385136e4c3561fba1c52ecd32e
| * Fix moving of TreeView itemsJoni Poikelin2016-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Property binding for row property in styleData causes an update which tries to read new value for the index property, but index is changed afterwards which causes old value to be read. This may lead to crashes and other unwanted behavior. Depth changes are now delivered to update item depths in visible items and model index changes though role instead of looking for a row change. Task-number: QTBUG-47523 Change-Id: I540cd06a25281f18e4628f4b030cf969dc8e0a7f Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Unify license header usageAntti Kokko2016-02-041-12/+15
|/ | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I3c851bc24da89f6300b94199387d1adf16ca4f48 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Desktop/TreeViewStyle: Fix first column marginGabriel de Dietrich2015-07-231-0/+1
| | | | | | | | | | The margin was different depending on the item's depth resulting in an extra indentation for those items of depth zero. We fix this, and also set the proper inden- tation from the style. Change-Id: I8c9babd4b7c8b413f5c46cb756682eae4bf86892 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* TreeView: Add styleData.index property for itemDelegateGabriel de Dietrich2015-03-301-0/+5
| | | | | | | | | This gives access to the QModelIndex pointing to the current row in the model. Change-Id: I2fcd69e023575754edd196758a8c3ddc32f47717 Task-number: QTBUG-45187 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* BasicTableView: Refactor and specialize ItemDelegateLoaderGabriel de Dietrich2015-02-131-0/+100
Change-Id: If95725e428025000d65984c81a1d7e1bac78e484 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>