From 35f5a0c5e13df3a0a41ef990b886a98ce2374a5c Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 3 Jun 2013 09:32:41 +0200 Subject: Remove nodes Implement remove nodes for ArchiveView. Only empty nodes without children can be removed. Everything else is too dangerous :) --- shemov.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index e0425fb..8912295 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -738,9 +738,14 @@ void SheMov::createActions(){ /* picView(er) END Actions! */ // ArchiveView actions + // rename mArchiveViewRenameA = new QAction(tr("Rename..."), this); connect(mArchiveViewRenameA, SIGNAL(triggered()), mArchive->archiveTree(), SLOT(rename())); mArchive->archiveTree()->addAction(mArchiveViewRenameA); + // remove + mArchiveViewRemoveA = new QAction(tr("Remove..."), this); + connect(mArchiveViewRemoveA, SIGNAL(triggered()), mArchive->archiveTree(), SLOT(remove())); + mArchive->archiveTree()->addAction(mArchiveViewRemoveA); //don't add actions with checkable(true) unless you know what you're doing! mPicActionGroup = new QActionGroup(this); -- cgit v1.2.3-70-g09d2