Use the "Hide toolbar" setting

This commit is contained in:
Vladimir Svyatski 2018-04-09 22:06:48 +03:00
parent 677b8caa63
commit d843ad414a
2 changed files with 12 additions and 1 deletions

View File

@ -133,7 +133,7 @@ MainWindow::MainWindow()
setAcceptDrops(true);
m_ui->toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
m_ui->toolBar->setHidden(config()->get("GUI/HideToolbar").toBool());
// Setup the search widget in the toolbar
SearchWidget* search = new SearchWidget();

View File

@ -175,6 +175,14 @@
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>30</height>
</rect>
</property>
<property name="contextMenuPolicy">
<enum>Qt::PreventContextMenu</enum>
</property>
@ -280,6 +288,9 @@
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="toolBar">
<property name="contextMenuPolicy">
<enum>Qt::PreventContextMenu</enum>
</property>
<property name="movable">
<bool>false</bool>
</property>