Mercurial > octave
changeset 24570:c9aab297130e
make floating dock widgets resizable in KDE Oxygen (bug #52797)
* octave-dock-widget.cc (make_window): set required window flags with and without
custom title bar widget
author | Torsten <mttl@mailbox.org> |
---|---|
date | Tue, 09 Jan 2018 19:12:04 +0100 |
parents | bcb8ce5c4e16 |
children | 7b6a5336ddb3 |
files | libgui/src/octave-dock-widget.cc |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc Tue Jan 09 10:09:24 2018 -0800 +++ b/libgui/src/octave-dock-widget.cc Tue Jan 09 19:12:04 2018 +0100 @@ -137,7 +137,13 @@ settings->sync (); // remove parent and adjust the (un)dock icon - setParent (0, Qt::Window); + setTitleBarWidget (0); + setParent (0, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | + Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint); + setTitleBarWidget (m_title_widget); + setParent (0, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | + Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint); + m_dock_action->setIcon (QIcon (":/actions/icons/widget-dock" + m_icon_color + ".png")); m_dock_action->setToolTip (tr ("Dock widget"));