summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-07-18 11:33:04 +0200
committerArno <am@disconnect.de>2010-07-18 11:33:04 +0200
commit88791c89ac1066a9c0118120e10ec3cc19c2ec72 (patch)
treeefe64de5f51bc4ab5821da7114ed9ebac16cccf7 /shemov.cpp
parenta7a6b1c9f8f718b3082e6cc373459a1eba508848 (diff)
downloadSheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.tar.gz
SheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.tar.bz2
SheMov-88791c89ac1066a9c0118120e10ec3cc19c2ec72.zip
Implemented "move to burn directory" for TreeWidget
Files from the archive can be moved to a configurable directory with this function. The specified files won't be deleted from the database.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index e662bdd..46567c2 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -415,6 +415,10 @@ void SheMov::createActions(){
mShowNormalA->setCheckable(true);
mShowNormalA->setChecked(true);
+ //Tree FileWidget actions
+ mMoveToBurnA = new QAction(tr("Move to burn directory"), this);
+ connect(mMoveToBurnA, SIGNAL(triggered()), mATree->filesWidget(), SLOT(moveToBurn()));
+
// misc
mOpenWithMapperFS = new QSignalMapper(this);
mOpenWithMapperAV = new QSignalMapper(this);
@@ -557,6 +561,9 @@ void SheMov::createMenus(){
mATree->seriesWidget()->seriesTree()->addAction(mExpandCurrentA);
mATree->seriesWidget()->seriesTree()->addAction(mExpandAllSeriesA);
mATree->seriesWidget()->seriesTree()->addAction(mCollapseAllSeriesA);
+
+ //ArchiveTreeView fileWidget context menu
+ mATree->filesWidget()->filesTree()->addAction(mMoveToBurnA);
}
void SheMov::createOpenWithMenuFS(){