Windows: View selection

.. scope bar select item lines up with menu choice now.
This commit is contained in:
Mark Liversedge
2013-03-15 17:38:44 +00:00
parent ca1ecb919b
commit bb53fcc4a9
2 changed files with 5 additions and 9 deletions

View File

@@ -479,6 +479,7 @@ MainWindow::MainWindow(const QDir &home) :
#ifdef GC_HAVE_LUCENE
// add a search box on far right, but with a little space too
SearchFilterBox *searchBox = new SearchFilterBox(this,this);
searchBox->setStyle(toolStyle);
searchBox->setFixedWidth(250);
head->addWidget(searchBox);
Spacer *spacer = new Spacer(this);
@@ -1617,9 +1618,9 @@ MainWindow::selectAnalysis()
analWindow->selected(); // tell it!
trainTool->getToolbarButtons()->hide();
#ifdef GC_HAVE_ICAL
scopebar->selected(1);
#else
scopebar->selected(2);
#else
scopebar->selected(1);
#endif
toolBox->setCurrentIndex(0);
}
@@ -1644,9 +1645,9 @@ MainWindow::selectTrain()
trainWindow->selected(); // tell it!
trainTool->getToolbarButtons()->show();
#ifdef GC_HAVE_ICAL
scopebar->selected(2);
#else
scopebar->selected(3);
#else
scopebar->selected(2);
#endif
toolBox->setCurrentIndex(2);
}
@@ -1698,10 +1699,6 @@ MainWindow::selectHome()
currentWindow = homeWindow;
setStyle();
}
void
MainWindow::selectAthlete()
{
}
void
MainWindow::setStyle()

View File

@@ -374,7 +374,6 @@ class MainWindow : public QMainWindow
void selectDiary();
void selectAnalysis();
void selectTrain();
void selectAthlete();
void setActivityMenu();
void setWindowMenu();