SettingsDialog: use QWidgetAction for the toolbar so the extension works
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 23 Oct 2015 14:19:40 +0000 (16:19 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 23 Oct 2015 14:23:37 +0000 (16:23 +0200)
commit42a6b242c770d46dbd650b7f314f3bb8a65d1233
tree693b27aaf65178a1c0dd7cdf57b698e652a64289
parentd657c00b11bf834e64ffd7893022a0a577af52bd
SettingsDialog: use QWidgetAction for the toolbar so the extension works

When the toolbar is full because there is no enough room, make the extension
of the toolbar work, by using QWidgetAction::createWidget instead of
QToolBar::insertWidget

There should not be prolem when the window is too narrow.

Relates #3832
src/gui/settingsdialog.cpp
src/gui/settingsdialog.h