mortbopet / VSRTL

Visual Simulation of Register Transfer Logic
MIT License
87 stars 17 forks source link

Make NetlistItem independent of models #26

Closed mortbopet closed 5 years ago

mortbopet commented 5 years ago

Currently, NetlistItem contains logich assume that specific values are placed in certain columns (such as the decorationRole in NetlistItem::data). Likewise, the models retreive their column count from the itemData variable in NetlistItem's.

itemData should be removed, given that all data is kept in the NetlistData struct, and NetlistItems should be made fully independent from their models. The only "link" to the model should be the QModelIndex index variable, which will come of importance for #25 .