diff options
author | Arno <am@disconnect.de> | 2013-07-28 07:46:16 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-28 07:46:16 +0200 |
commit | d6b178b1fdcdac519ded25e3f253d9eeffa84053 (patch) | |
tree | ba9a03e041fa72ccde37367ef07864884f0ced7b /archivecontroller.cpp | |
parent | 5cfaa2c755c52c2ccbdd88ea3239dafb120a179b (diff) | |
download | SheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.tar.gz SheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.tar.bz2 SheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.zip |
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.
Diffstat (limited to 'archivecontroller.cpp')
-rw-r--r-- | archivecontroller.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); |