From 9dc2528dfdb04f18641602cfd24c09cb9b119107 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 8 Jul 2013 22:09:36 +0200 Subject: Make new archive work Well, this is a huge commit. Should be severals, but who knew... First and foremost feature: Make NewMovieWizard work with the experimental model. This change obsoleted a lot of code. Also, the old archive won't work with with the new Wizward... There are most probably many other features I forgot about. --- archivecontroller.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archivecontroller.cpp') diff --git a/archivecontroller.cpp b/archivecontroller.cpp index 855e1bb..82d0bd8 100644 --- a/archivecontroller.cpp +++ b/archivecontroller.cpp @@ -24,7 +24,11 @@ ArchiveController::ArchiveController(QObject *parent) : QObject(parent) { } } -void ArchiveController::setArchiveView(ArchiveTree *atree, ArchiveProxy *aproxy){ +void ArchiveController::setArchiveView(ArchiveView *view){ + mArchiveView = view; +} + +void ArchiveController::setArchiveTree(ArchiveTree *atree, ArchiveProxy *aproxy){ mArchiveTree = atree; mArchiveProxy = aproxy; mArchiveSelection = mArchiveTree->selectionModel(); @@ -160,6 +164,7 @@ void ArchiveController::treeSelectionChanged(const QItemSelection &selected, con } mArchiveFilesModel->populate(ids); mArchiveFiles->expandAll(); + mArchiveView->setCurrentArchivePath(mArchiveModel->indexToPath(sel.first())); } void ArchiveController::fileDoubleClicked(const QModelIndex &idx){ -- cgit v1.2.3-70-g09d2