Commit graph

5 commits

Author SHA1 Message Date
eelke
742fd0a4d3 SelectionEditorFactory + ItemModel + ItemModelFactory combination is working
in new EditTableWidget

(EditTableWidget is very much WIP)
2018-12-15 20:27:40 +01:00
eelke
f8d61b61f4 Added capability to create editors from an editor factory to PgLabItemDelegate 2018-12-15 12:11:23 +01:00
eelke
d4d8316917 Collection of minor code improvements.
Program should still behave exactly the same.
2018-10-21 13:46:58 +02:00
Eelke Klein
8b7bbec807 Flexible models 2018-09-02 10:30:30 +00:00
eelke
3ac1d21728 Implemented a custom delegate that does the samework as the BaseTableModel class did.
While this might seem to duplicate behaviour I believe having this code in a delegate
is a better solution.
- the logic in BaseTableModel is view logic not model logic
- letting the custom delegate determine the formatting is much more efficient
  then letting the default delegate do many virtual calls to detemine how the
  model wants it formatted.
2018-01-15 12:21:24 +01:00