diff options
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -79,9 +79,12 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla connect(mATree->seriesWidget()->seriesTree()->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(updateSelectionCount(QItemSelection,QItemSelection))); connect(this, SIGNAL(configChanged()), mATree, SLOT(readSettings())); - //newmoviewizard + //newmoviewizard + dbanalyzer mNewMovieWizard = new NewMovieWizard(this); connect(mNewMovieWizard, SIGNAL(seriesAdded(QString,int)), mATree->seriesWidget(), SLOT(seriesAdded(QString,int))); + mDbAnalyzerDialog = new DbAnalyzerDialog(this); + connect(mDbAnalyzerDialog, SIGNAL(partClicked(int, int)), mATree, SLOT(selectMoviePart(int, int))); + connect(mDbAnalyzerDialog, SIGNAL(delItems(int,QList<int>&)), this, SLOT(analyzeDelete(int,QList<int>&))); QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addWidget(mTab); @@ -985,10 +988,7 @@ void SheMov::checkConsistency(){ } void SheMov::analyzeDb(){ - DbAnalyzerDialog d(this); - connect(&d, SIGNAL(partClicked(int, int)), mATree, SLOT(selectMoviePart(int, int))); - connect(&d, SIGNAL(delItems(int,QList<int>&)), this, SLOT(analyzeDelete(int,QList<int>&))); - d.exec(); + mDbAnalyzerDialog->show(); } void SheMov::analyzeDelete(int mode, QList<int> &ids){ @@ -1010,6 +1010,7 @@ void SheMov::analyzeDelete(int mode, QList<int> &ids){ } Q_ASSERT(model); model->deleteItems(ids); + mDbAnalyzerDialog->refresh(); } void SheMov::toggleHover(QObject *object){ |