Move specialFields from MainWindow to Context

.. and tidy up a few unneccessary references to mainWindow
This commit is contained in:
Mark Liversedge
2013-07-14 11:51:34 +01:00
parent d30ec2ae3a
commit 12f63e2b73
19 changed files with 36 additions and 59 deletions

View File

@@ -75,17 +75,12 @@ DiaryWindow::DiaryWindow(Context *context) :
allViews = new QStackedWidget(this);
allViews->addWidget(monthlyView);
//allViews->setCurrentIndex(viewMode->currentIndex());
allViews->setCurrentIndex(0);
vlayout->addWidget(allViews);
//connect(viewMode, SIGNAL(currentIndexChanged(int)), allViews, SLOT(setCurrentIndex(int)));
//connect(viewMode, SIGNAL(currentIndexChanged(int)), this, SLOT(setDefaultView(int)));
//connect(viewMode, SIGNAL(currentIndexChanged(int)), this, SLOT(rideSelected()));
connect(this, SIGNAL(rideItemChanged(RideItem*)), this, SLOT(rideSelected()));
connect(context->mainWindow, SIGNAL(filterChanged(QStringList&)), this, SLOT(rideSelected()));
//connect(mainWindow, SIGNAL(rideSelected()), this, SLOT(rideSelected()));
connect(context, SIGNAL(configChanged()), this, SLOT(configChanged()));
connect(next, SIGNAL(clicked()), this, SLOT(nextClicked()));
connect(prev, SIGNAL(clicked()), this, SLOT(prevClicked()));