path: root/src/widgets/styles
diff options
authorOlivier Goffart <>2017-02-28 16:03:30 +0100
committerOlivier Goffart (Woboq GmbH) <>2017-04-13 17:44:33 +0000
commit60be2fb6a13315f074c3c0b7793c38632f291e8b (patch)
tree08abce1c5f4240205776e00936df8160d90af8d8 /src/widgets/styles
parent46458ce3ef4aeb01fef97348dcd317f0edd7e5fb (diff)
QMainWindow: move the separator handling in another class
So it will be re-used by QDockWidgetGroupWindow The Layout template argument can be the QMainWindowLayout, or the QDockWidgetGroupLayout. They have a function dockAreaLayoutInfo which return a QDockAreaLayout* or a QDockAreaLayoutInfo*, respectively. These two class have the same interface as far as QMainWindowLayoutSeparatorHelper is concerned. (QDockAreaLayout forward most of its call to the relevant QDockAreaLayoutInfo) The code is mostly moved without modification, but there is a change in startSeparatorMove, because we don't have access to the layoutState to set the fallbackToSizeHints variable, so instead, we do that from QMainWindowLayout::hover. Change-Id: Ic5fa3ee2def3d0155195f751d4770b207732139f Reviewed-by: Sérgio Martins <>
Diffstat (limited to 'src/widgets/styles')
0 files changed, 0 insertions, 0 deletions