From d6b178b1fdcdac519ded25e3f253d9eeffa84053 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 28 Jul 2013 07:46:16 +0200 Subject: Implement file properties dialog Show file properties in Filemanager and Archive, if the file is available. Also get rid of the palette stuff in SmGlobals. Just call setPalette() early enough and set it in SmTreeView. --- archivecontroller.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'archivecontroller.cpp') diff --git a/archivecontroller.cpp b/archivecontroller.cpp index d75f52f..4475166 100644 --- a/archivecontroller.cpp +++ b/archivecontroller.cpp @@ -18,6 +18,7 @@ #include "archivemodel.h" #include "archiveview.h" #include "pictureviewer2.h" +#include "filepropertiesdialog.h" #include "smglobals.h" #include "helper.h" @@ -165,6 +166,16 @@ void ArchiveController::editFileNo(){ } } +void ArchiveController::showProperties(){ + QModelIndexList sel = mFileSelection->selectedRows(ArchiveFilesModel::FullPath); + if(sel.isEmpty()){ + return; + } + QModelIndex first = sel.first(); + FilePropertiesDialog dlg(first.data().toString()); + dlg.exec(); +} + void ArchiveController::addActionForTree(QAction *a){ mActionsForTree << a; mArchiveTree->addAction(a); -- cgit v1.2.3-70-g09d2