diff options
author | Sergio Martins <iamsergio@gmail.com> | 2018-04-11 14:20:34 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2018-04-12 13:55:12 +0000 |
commit | 144ee494b774fdc0fcdfdda53ebd8d4807a270dc (patch) | |
tree | 7caeaaaf756642965d14024c804d26302bc3c7b3 /src/widgets/widgets/qmainwindowlayout_p.h | |
parent | 2cc977665260c828b9652fdc49f145577bf39ebc (diff) |
dockwidgets: Resize the rubber-band when our drop target is resized
Bug can be seen on the .gif attached to QTBUG-67611, the floating group
window resizes, but the rubber band still has the old size.
Change-Id: I7232a39574ea06fe036c75c21e7496c0f32f4632
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qmainwindowlayout_p.h')
-rw-r--r-- | src/widgets/widgets/qmainwindowlayout_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmainwindowlayout_p.h b/src/widgets/widgets/qmainwindowlayout_p.h index 168d4444b9..53e045aaae 100644 --- a/src/widgets/widgets/qmainwindowlayout_p.h +++ b/src/widgets/widgets/qmainwindowlayout_p.h @@ -338,12 +338,16 @@ public: bool hasNativeDecos() const; bool hover(QLayoutItem *widgetItem, const QPoint &mousePos); + void updateCurrentGapRect(); void restore(); void apply(); QRect currentGapRect; QList<int> currentGapPos; +signals: + void resized(); + protected: bool event(QEvent *) override; void paintEvent(QPaintEvent*) override; |