diff options
| author | Arno <am@disconnect.de> | 2013-06-03 09:32:41 +0200 | 
|---|---|---|
| committer | Arno <am@disconnect.de> | 2013-06-03 09:32:41 +0200 | 
| commit | 35f5a0c5e13df3a0a41ef990b886a98ce2374a5c (patch) | |
| tree | 6a72ab07c734f95af9d2e1b67cd3079e96e6e43a /shemov.cpp | |
| parent | 953a291517022deaf22ec682e2d0971e999508d5 (diff) | |
| download | SheMov-35f5a0c5e13df3a0a41ef990b886a98ce2374a5c.tar.gz SheMov-35f5a0c5e13df3a0a41ef990b886a98ce2374a5c.tar.bz2 SheMov-35f5a0c5e13df3a0a41ef990b886a98ce2374a5c.zip  | |
Remove nodes
Implement remove nodes for ArchiveView. Only empty nodes without
children can be removed. Everything else is too dangerous :)
Diffstat (limited to 'shemov.cpp')
| -rw-r--r-- | shemov.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
@@ -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);  | 
