Commit 589f1c40 authored by finetjul's avatar finetjul
Browse files

BUG: Connect toolbar visibility actions with toolbar on signal toggled

instead of triggered because triggered is only fired if it's the user that
change the checked property and not if it is done programatically.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15614 3bd1e089-480b-0410-8dfb-8563597acbee
parent 79d3ce70
......@@ -900,7 +900,7 @@
<connections>
<connection>
<sender>actionWindowShowMainPanel</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>PanelDockWidget</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -932,7 +932,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsLayout</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>LayoutToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -948,7 +948,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsMouseMode</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>MouseModeToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -964,7 +964,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsLoadSave</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>MainToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -980,7 +980,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsUndoRedo</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>UndoRedoToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -996,7 +996,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsModules</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>ModuleToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......@@ -1012,7 +1012,7 @@
</connection>
<connection>
<sender>actionWindowToolbarsView</sender>
<signal>triggered(bool)</signal>
<signal>toggled(bool)</signal>
<receiver>ViewToolBar</receiver>
<slot>setVisible(bool)</slot>
<hints>
......
......@@ -278,6 +278,7 @@ qSlicerMainWindow::qSlicerMainWindow(QWidget *_parent):Superclass(_parent)
d->actionWindowToolbarsView->setChecked(d->ViewToolBar->isVisibleTo(this));
d->actionWindowToolbarsModuleSelector->setChecked(d->ModuleSelectorToolBar->isVisibleTo(this));
d->actionWindowToolbarsModules->setChecked(d->ModuleToolBar->isVisibleTo(this));
d->actionWindowToolbarsMouseMode->setChecked(d->MouseModeToolBar->isVisibleTo(this));
}
//-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment