rakhimov / scram

Probabilistic Risk Analysis Tool (fault tree analysis, event tree analysis, etc.)
https://scram-pra.org
GNU General Public License v3.0
133 stars 54 forks source link

GUI: QSortFilterProxyModel breaks Gate tree-table model #214

Closed rakhimov closed 7 years ago

rakhimov commented 7 years ago

QSortFitlerProxyModel is designed for table and list models. For tree (general) models, it is not flexible enough to ignore children rows. This causes assertion errors in Gate tree-table model dealing with invalid index requests. The proxy model needs to be specialized for the gates table.