From f4e511e825ff62538143896ff83278f1a8960e69 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 12 May 2015 16:22:39 +0300 Subject: [PATCH] Hide toolbar if user doesn't need it. --HG-- branch : feature --- src/app/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 025fceb32..462bc3f8d 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1178,6 +1178,8 @@ void MainWindow::ActionDraw(bool checked) ui->actionOptionDraw->setEnabled(true); ui->actionNewDraw->setEnabled(true); + ui->toolBarOption->setVisible(true); + ui->dockWidgetLayoutPages->setVisible(false); ui->dockWidgetToolOptions->setVisible(true); } @@ -1224,6 +1226,8 @@ void MainWindow::ActionDetails(bool checked) ui->actionOptionDraw->setEnabled(false); ui->actionNewDraw->setEnabled(false); + ui->toolBarOption->setVisible(false); + ui->dockWidgetLayoutPages->setVisible(false); ui->dockWidgetToolOptions->setVisible(true); } @@ -1278,6 +1282,8 @@ void MainWindow::ActionLayout(bool checked) ui->actionOptionDraw->setEnabled(false); ui->actionNewDraw->setEnabled(false); + ui->toolBarOption->setVisible(false); + ui->dockWidgetLayoutPages->setVisible(true); ui->dockWidgetToolOptions->setVisible(false); }