summaryrefslogtreecommitdiffstats
path: root/smtreemodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Created frontend for SeriesTreeModel::deleteFromSeriesArno2010-06-181-1/+1
| | | | | | | | | | | 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.
* Partial implementation of adding new SeriesArno Moeller2010-06-171-1/+1
| | | | | | 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.
* Treemodel DevelopmentArno2010-06-161-0/+8
| | | | | | | | | | -Changed the database schema. Attached quality to files -Subclassed SmTreeModel for SeriesTreeModel -Made SmTreeModel virtual for that Well, it seems there is a serious problem with the database schema. Curiously everything inside the model works beside the db update. Seems I have it wrong with the fks :(
* Implemented SeriesTreeWidgetArno2010-06-131-1/+8
| | | | | | | | | 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
* Implemented SmTreeModel::parentArno2010-06-121-0/+14
| | | | | Forgot to implement SmTreeModel::parent. Thus it was a pure abstract class and not instantiable.
* Finished SmTreeModel, started SmUberModelArno2010-06-061-0/+144
| | | | | kinda finished the treemodel. Don't really know if it's complete yet. More programming will show :)
* Started Treemodel for ArchiveArno2010-06-031-0/+18
Implemented generic SmTreeItem, started on generic SmTreeModel.