From 68bbb05568ea41a6215a5bfe3eae685bdd5e9a0e Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sun, 27 Oct 2013 21:11:59 +0000 Subject: [PATCH] Show/hide scopebar with toolbar When showing / hiding the toolbar we also show / hide the scope bar. This is so when in train mode and you go full screen it is possible to hide all ornamentation. This will become a moot point when the scope bar is replaced with 'appstore style icons' in the toolbar to switch between home, analysis, train etc. --- src/MainWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 6b71c0d45..17d91d59e 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -627,8 +627,14 @@ MainWindow::showSidebar(bool want) void MainWindow::showToolbar(bool want) { - if (want) head->show(); - else head->hide(); + if (want) { + head->show(); + scopebar->show(); + } + else { + head->hide(); + scopebar->hide(); + } } void