From a4e40f771e7f6df9dc8d7e63c5460761eb0e33c0 Mon Sep 17 00:00:00 2001 From: Arno Moeller Date: Thu, 17 Jun 2010 17:59:39 +0200 Subject: Partial implementation of adding new Series Adding an item to the TreeView works, but it doesn't get focus after inserting. Also the data is not shown. And setting the title of the new item should make the database puke. --- shemov.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 4969713..8db4db9 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -47,6 +47,7 @@ #include "archivetreeview.h" #include "smubermodelsingleton.h" #include "smubermodel.h" +#include "seriestreewidget.h" SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags), mOpenWithGroupFS(0), mOpenWithGroupAV(0) { qApp->setWindowIcon(QIcon(":/shemov.png")); @@ -355,6 +356,11 @@ void SheMov::createActions(){ mStatisticsA = new QAction(tr("Some statistics..."), this); connect(mStatisticsA, SIGNAL(triggered()), this, SLOT(showStatistics())); + //Tree context menu + mNewSeriesA = new QAction(tr("New series"), this); + mATree->seriesWidget()->seriesTree()->addAction(mNewSeriesA); + connect(mNewSeriesA, SIGNAL(triggered()), mATree->seriesWidget(), SLOT(newSeries())); + // misc mOpenWithMapperFS = new QSignalMapper(this); mOpenWithMapperAV = new QSignalMapper(this); -- cgit v1.2.3-70-g09d2