mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Windows: View selection
.. scope bar select item lines up with menu choice now.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -374,7 +374,6 @@ class MainWindow : public QMainWindow
|
||||
void selectDiary();
|
||||
void selectAnalysis();
|
||||
void selectTrain();
|
||||
void selectAthlete();
|
||||
|
||||
void setActivityMenu();
|
||||
void setWindowMenu();
|
||||
|
||||
Reference in New Issue
Block a user