diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-25 15:20:37 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-26 07:10:59 +0200 |
commit | f5a20c68b3ed72bdb81bf8a6533f793520bd72c7 (patch) | |
tree | 47980ce3bcd834d9f0ef4cb2fa3a298fc24c9ae0 /vcl/inc | |
parent | 79773cf27636a99c2a37373046fb448e1d754c0d (diff) |
tdf#160837 qt: Move logic for resize event handling to QtFrame
Add a new QtFrame::handleResizeEvent and move the
logic from QtWidget::resizeEvent to the new method
and call the new method from QtWidget::resizeEvent.
This decouples QtFrame and (its friend class) QtWidget
a bit more, and also prevents direct access to the
(currently public) SalFrame::maGeometry member from
QtWidget.
Change-Id: I8969687c64b87677836b436b7815298a8e8d5cf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173952
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/qt5/QtFrame.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/qt5/QtFrame.hxx b/vcl/inc/qt5/QtFrame.hxx index 3675df555384..12c63349e518 100644 --- a/vcl/inc/qt5/QtFrame.hxx +++ b/vcl/inc/qt5/QtFrame.hxx @@ -170,6 +170,7 @@ public: void handleDragMove(QDragMoveEvent* pEvent); void handleDrop(QDropEvent* pEvent); void handleMoveEvent(QMoveEvent* pEvent); + void handleResizeEvent(QResizeEvent* pEvent); virtual void SetExtendedFrameStyle(SalExtStyle nExtStyle) override; virtual void Show(bool bVisible, bool bNoActivate = false) override; |