summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-08-05 20:39:09 +0200
committerArno <am@disconnect.de>2010-08-05 20:39:09 +0200
commit9e12957c363a68543456dfe95ab88a11a69ae610 (patch)
tree77c1e10e7547d8764fa4a6da5d39368ec7d6540e /shemov.cpp
parent3ed95b4e8edd7faaefa0a296a8d33f1dadd60b83 (diff)
downloadSheMov-9e12957c363a68543456dfe95ab88a11a69ae610.tar.gz
SheMov-9e12957c363a68543456dfe95ab88a11a69ae610.tar.bz2
SheMov-9e12957c363a68543456dfe95ab88a11a69ae610.zip
Fixed edit trigger in SeriesTreeView
Until now doubleclicking an item with children in SeriesTreeWidget did 3 things: 1. Expand or collapse the item 2. Trigger editing 3. Start playing all child movies in the default player This is not really expected behavior. So I disabled all EditTriggers on SeriesTreeView and set expandsOnDoubleClick to false. To still retain the ability to edit series a new slot was introduced to SeriesTreeWidget triggering the edit event. It's available from the SeriesTreeWidget context menu. Now doubleclicking an item in SeriesTreeView just plays all child movies. Child items also have their name changed when changing the parent item. This bug was long present in renameSeries. mergeSeries always did the right thing (tm).
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 36b0f1f..4bb7dd9 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -343,6 +343,8 @@ void SheMov::createActions(){
connect(mExpandCurrentA, SIGNAL(triggered()), mATree->seriesWidget(), SLOT(expandCurrent()));
mAddCoverA = new QAction(tr("Add cover..."), this);
connect(mAddCoverA, SIGNAL(triggered()), mATree->seriesWidget(), SLOT(addCover()));
+ mEditItemA = new QAction(tr("Edit..."), this);
+ connect(mEditItemA, SIGNAL(triggered()), mATree->seriesWidget(), SLOT(editItem()));
//Tree view menu
mViewTreeGroup = new QActionGroup(this);
@@ -467,6 +469,7 @@ void SheMov::createMenus(){
//ArchiveTreeView context menu
mATree->seriesWidget()->seriesTree()->addAction(mNewSeriesA);
mATree->seriesWidget()->seriesTree()->addAction(mDeleteFromSeriesA);
+ mATree->seriesWidget()->seriesTree()->addAction(mEditItemA);
QAction *sep4 = new QAction(this);
sep4->setSeparator(true);
mATree->seriesWidget()->seriesTree()->addAction(sep4);