ivoflipse / Pawlabeling

Tool for processing and analyzing pressure measurements
Other
18 stars 1 forks source link

Selecting a measurement collapses it #89

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

Because of the changes I made, when you select a measurement in the tree by double clicking, it also collapses the tree. Rather annoying if you ask me. Perhaps it would also be annoying if you couldn't collapse it, but this is even worse.

ivoflipse commented 10 years ago

This probably requires overwriting the event, because I'm trying to use measurement_item.setChildIndicatorPolicy(QtGui.QTreeWidgetItem.DontShowIndicator), which doesn't seem to do anything...

ivoflipse commented 10 years ago

Turns out I was looking for the wrong term. I should have been looking at expanding instead of collapsing.

self.measurement_tree.setItemsExpandable(False) did the trick.