Hide toolbar if user doesn't need it.
--HG-- branch : feature
This commit is contained in:
parent
3cb7e5a393
commit
f4e511e825
|
@ -1178,6 +1178,8 @@ void MainWindow::ActionDraw(bool checked)
|
||||||
ui->actionOptionDraw->setEnabled(true);
|
ui->actionOptionDraw->setEnabled(true);
|
||||||
ui->actionNewDraw->setEnabled(true);
|
ui->actionNewDraw->setEnabled(true);
|
||||||
|
|
||||||
|
ui->toolBarOption->setVisible(true);
|
||||||
|
|
||||||
ui->dockWidgetLayoutPages->setVisible(false);
|
ui->dockWidgetLayoutPages->setVisible(false);
|
||||||
ui->dockWidgetToolOptions->setVisible(true);
|
ui->dockWidgetToolOptions->setVisible(true);
|
||||||
}
|
}
|
||||||
|
@ -1224,6 +1226,8 @@ void MainWindow::ActionDetails(bool checked)
|
||||||
ui->actionOptionDraw->setEnabled(false);
|
ui->actionOptionDraw->setEnabled(false);
|
||||||
ui->actionNewDraw->setEnabled(false);
|
ui->actionNewDraw->setEnabled(false);
|
||||||
|
|
||||||
|
ui->toolBarOption->setVisible(false);
|
||||||
|
|
||||||
ui->dockWidgetLayoutPages->setVisible(false);
|
ui->dockWidgetLayoutPages->setVisible(false);
|
||||||
ui->dockWidgetToolOptions->setVisible(true);
|
ui->dockWidgetToolOptions->setVisible(true);
|
||||||
}
|
}
|
||||||
|
@ -1278,6 +1282,8 @@ void MainWindow::ActionLayout(bool checked)
|
||||||
ui->actionOptionDraw->setEnabled(false);
|
ui->actionOptionDraw->setEnabled(false);
|
||||||
ui->actionNewDraw->setEnabled(false);
|
ui->actionNewDraw->setEnabled(false);
|
||||||
|
|
||||||
|
ui->toolBarOption->setVisible(false);
|
||||||
|
|
||||||
ui->dockWidgetLayoutPages->setVisible(true);
|
ui->dockWidgetLayoutPages->setVisible(true);
|
||||||
ui->dockWidgetToolOptions->setVisible(false);
|
ui->dockWidgetToolOptions->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user