From d9d32f44d64834754650fc4fe70a4d7aae449e0c Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 9 Jul 2010 21:07:10 +0200 Subject: Final version of NewMovieWizard::accept() (hopefully) Actually made this function work. Forgot to handle actors and genres. Also several bugfixes in other parts: -fix typo in FilesTreeModel query -commit changes ind MappingTableModel::addItem, making the genre and actor widgets work as intended -remove redundant MappingTableModel::find(), already implemented in SmTreeModel -call next() instead of exec() in SeriesTreeModel::addSeriesPart. Query is already executing if it's a select -use QModelIndex::row() instead of column() in MappingTableWidget::removeItem() -add partNo to layout in MovieInfopage::MovieInfoPage() -add convenience function setMappings() to MappingTableModel --- mappingtablemodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mappingtablemodel.h') diff --git a/mappingtablemodel.h b/mappingtablemodel.h index d600437..ae64600 100644 --- a/mappingtablemodel.h +++ b/mappingtablemodel.h @@ -30,14 +30,14 @@ class MappingTableModel : public SmTreeModel{ virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role); bool contains(const QString &value) const; - QModelIndex find(const QVariant &value, int column = 0, const QModelIndex &parent = QModelIndex()) const; + void setMappings(const QStringList &itemNames, int seriesPartId = -1); //add and remove items bool addItem(const QVariant &name); bool removeItem(const QModelIndex &idx); //mappings - bool addMapping(int seriesId, int itemId); + bool addMapping(int seriesPartId, int itemId); bool removeMapping(int seriesId, int itemId); QList mappings(int seriesId); -- cgit v1.2.3-70-g09d2