Skip to content
Verified Commit a5591be7 authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

TreeViewDelegate: Fix non-observable modelIndex property getting stuck

Although not quite consistent, the ItemBranchIndicators item could
randomly get stuck without any usable modelIndex being ever set. It was
caused by the `readonly property var modelIndex` not emitting any
change signal, which is turn was caused by `treeView.index(row, column)`
expression being non-observable AND evaluating before a model is set.

This whole fix is quite bad, and I'd rather use an original QModelIndex
instead having to reconstruct it from bits and manually subscribing to
events which are potentially affecting it; but TableView could only set
an `index` required property which an integer that seems to identical
to the `row` property.
parent 605b22a9
Pipeline #665978 passed with stage
in 3 minutes and 34 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment