From b8e16c3bddb706ecc195e86eaafb89ed90f9bfc3 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 24 Feb 2012 20:35:27 +0100 Subject: Implement MappingTreeWidget This is a rather large commit. It implements MappingTreeWidget using MappingTreeModel unsurprisingly this uncovered some exciting bugs. Fixes the following bugs in MappingTreeModel: * use insertRows() and removeRows() when addings children, because dataChanged() won't do it. * don't use a prepared QSqlQuery when fetching children recursively. This won't work because the query is still active when we invoke ourselves again. Put the query on the stack instead * Keep the model sorted. Also add an entry for a MappingTreeEditor to the File-Menu. --- shemov.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shemov.h') diff --git a/shemov.h b/shemov.h index 6162f4d..ae1c6c4 100644 --- a/shemov.h +++ b/shemov.h @@ -23,6 +23,7 @@ class QActionGroup; class ArchiveTreeView; class NewMovieWizard; class DbAnalyzerDialog; +class MappingTreeWidget; class SheMov : public QMainWindow { Q_OBJECT @@ -52,6 +53,7 @@ class SheMov : public QMainWindow { void checkMount(bool mounted); void toggleFilterGroup(bool checked); void editMappings(QString table); + void mappingEditor(); signals: void configChanged(); @@ -105,10 +107,10 @@ class SheMov : public QMainWindow { QAction *mArchiveSelectedA; QAction *mConsistencyA; QAction *mAnalyzerA; + QAction *mMappingEditorA; //hmm QAction *mHoverDirectoriesA; - //TreeView Actions //Series Actions QAction *mNewSeriesA; -- cgit v1.2.3-70-g09d2