summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-10-12 17:14:05 +0200
committerArno <am@disconnect.de>2013-10-12 17:14:05 +0200
commit31a6c7e9afc50c6c3426937d411e21a79fec77e7 (patch)
treeb8976b0d0e6a486d947e25447a0bb14c61637b49 /shemov.cpp
parent89662ce745c1eee152e7bc2200be5f08caee78a8 (diff)
downloadSheMov-31a6c7e9afc50c6c3426937d411e21a79fec77e7.tar.gz
SheMov-31a6c7e9afc50c6c3426937d411e21a79fec77e7.tar.bz2
SheMov-31a6c7e9afc50c6c3426937d411e21a79fec77e7.zip
Use marked files from PictureViewer2
* Call NewPicsDialog with marked files list * some more keyboard navigation: -> Cursor UP and RIGHT - previous -> Cursor DOWN and LEFT - next -> DELETE - delete file
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index ac32419..437a38b 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -528,6 +528,10 @@ void SheMov::createActions(){
mPVClearMarksA = new QAction(tr("Clear marks"), this);
connect(mPVClearMarksA, SIGNAL(triggered()), picViewer, SLOT(clearMarks()));
picViewer->addAction(mPVClearMarksA);
+ mPVDeleteA = new QAction(QIcon(":/delete.png"), tr("Delete..."), this);
+ mPVDeleteA->setData(PictureViewer2::DeleteAction);
+ connect(mPVDeleteA, SIGNAL(triggered()), picViewer, SLOT(deleteCurrent()));
+ picViewer->addAction(mPVDeleteA);
picViewer->addAction(createSeparator());
// Slide