summaryrefslogtreecommitdiffstats
path: root/seriestreewidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Singleton cleanupArno2010-06-231-3/+2
| | | | | | | | | | The SmUberModel class wasn't needed at all, so I removed it. Instead I renamed SmUmberModelSingleton into a real singleton for all QAbstractItemModel*, though right now it only supports the SeriesTreeModel and FileTreeModel. But it should eventually evolve into a singleton for all QAbstractItemModel *. For this I renamed the class SmUberModelSingleton to SmModelSingleton.
* expand/collape actions for SeriesTreeWidgetArno2010-06-181-0/+9
| | | | Implemented expand and collapse actions for SeriesTreeWidget.
* read/write settings for SeriesTreeWidgetArno2010-06-181-0/+32
| | | | | SeriesTreeWidget now retains its last state regarding sort order and expanded items.
* Sort for SeriesTreeModel/ViewArno2010-06-181-1/+10
| | | | Sort Parts regarding to their part number.
* Created frontend for SeriesTreeModel::deleteFromSeriesArno2010-06-181-0/+54
| | | | | | | | | | | Implemented frontend for SeriesTreeModel::deleteFromSeries. I hope QPersistentModelIndexes work as advertised. From the qt-sources it seems that a QPersistentModelIndex is automatically updated by QAbstractItemModel when calling begin(Remove|Insert)Rows. Testing worked out fine. While at it I found a bug in SmTreeModel. removeRows has to be called with (i - 1) instead of (i) to remove the correct nodes.
* Implemented SeriesTreeModel::deleteFromSeriesArno Moeller2010-06-181-0/+9
| | | | It compiles, let's ship it. Totally untested.
* Finished New series in SeriesTreeWidgetArno2010-06-171-2/+5
| | | | | | | | Another not so atomic commit. Inserting a new serie by triggering the action in the context menu now works. While at it I revamped setData and put the if/elses into functions. Also fixed a bug in setData: Use TypeRole instead of the Fields enum.
* Partial implementation of adding new SeriesArno Moeller2010-06-171-3/+25
| | | | | | Adding an item to the TreeView works, but it doesn't get focus after inserting. Also the data is not shown. And setting the title of the new item should make the database puke.
* GUI fixesArno Moeller2010-06-171-3/+11
| | | | | -Hide columns 1 - 5 in SeriesTreeWidget -Resort SeriesTreeWidget when SeriesName is changed
* Implemented SeriesTreeWidgetArno2010-06-131-0/+56
Implemented a widget for showing series in a tree. Also implemented filtering and sorting for this widget. Some bugfixes and enhancements: -Show dildo as DecorationRole in SeriesWidget -removed Quality from SeriesWidget