summaryrefslogtreecommitdiffstats
path: root/fileview.cpp
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-15 19:16:26 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-15 19:16:26 +0000
commit95bd97d4f5dc4d0ee91cfeeff89b88ff3d8f26df (patch)
tree59dec9ad30bbb5457ae66eddbe59b3348dd1feec /fileview.cpp
parent440f3fe87e9adc95f6155b924162e335f2b434e0 (diff)
downloadSheMov-95bd97d4f5dc4d0ee91cfeeff89b88ff3d8f26df.tar.gz
SheMov-95bd97d4f5dc4d0ee91cfeeff89b88ff3d8f26df.tar.bz2
SheMov-95bd97d4f5dc4d0ee91cfeeff89b88ff3d8f26df.zip
-finished calling extractor
-QProcess doesn't work as promised in the docs, dunno how to do it yet, but we need a thread to keep the GUI responsive... -fixed some bugs with the extractionpaths git-svn-id: file:///var/svn/repos2/shemov/trunk@387 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'fileview.cpp')
-rw-r--r--fileview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fileview.cpp b/fileview.cpp
index 3c9f8fc..88cc15c 100644
--- a/fileview.cpp
+++ b/fileview.cpp
@@ -111,10 +111,13 @@ void FileView::doCreateFolder(){
void FileView::contextMenuEvent(QContextMenuEvent *e){
QMenu contextMenu(this);
QMenu renameMenu(tr("Rename..."));
+ QMenu extractMenu(tr("Extract To..."));
int ctr(0);
foreach(QAction *a, actions()){
if(a->data() == "RenameMenu"){
renameMenu.addAction(a);
+ }else if(a->data() == "ExtractMenu"){
+ extractMenu.addAction(a);
}else{
contextMenu.addAction(a);
if((ctr == 0) || (ctr == 1) || (ctr == 3)){
@@ -122,6 +125,8 @@ void FileView::contextMenuEvent(QContextMenuEvent *e){
}
if(ctr == 8){
contextMenu.addMenu(&renameMenu);
+ contextMenu.addSeparator();
+ contextMenu.addMenu(&extractMenu);
}
++ctr;
}