From 31a6c7e9afc50c6c3426937d411e21a79fec77e7 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 12 Oct 2013 17:14:05 +0200 Subject: 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 --- shemov.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shemov.cpp') 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 -- cgit v1.2.3-70-g09d2