summaryrefslogtreecommitdiff
path: root/vcl/inc/qt5/Qt5MainWindow.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-06-21 04:09:02 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2019-06-22 16:22:37 +0200
commit337b592a721bef2c54cbe8c4927e5cc5a68c2138 (patch)
treef4878058be0fb6839f56b346defa07d6c00dfeb6 /vcl/inc/qt5/Qt5MainWindow.hxx
parent1795adce52b614cc6f12ea313f1c377fefbf2351 (diff)
tdf#123779 Qt5 correctly fill Qt5Frame::maGeometry
The tooltip in the bug is actually not one, but the VCL implementation of Gtk's popover widget triggered by SalFrame::ShowPopover. This has no Qt equivalent, so we currently rely on the crude VCL version. But for this maGeometry must contain the correct information, AKA the absolute, unmirrored, paintable system geometry of the frame. Then the window can be positioned correctly. The patch gets rid of most of the code initially copied from gtk, when this VCL backend was in a very early state. Change-Id: Id44e4dc2aac41f1f01d51c4d8107892e644ef243 Reviewed-on: https://gerrit.libreoffice.org/74546 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/qt5/Qt5MainWindow.hxx')
-rw-r--r--vcl/inc/qt5/Qt5MainWindow.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5MainWindow.hxx b/vcl/inc/qt5/Qt5MainWindow.hxx
index a2a7e184c291..a0836170f644 100644
--- a/vcl/inc/qt5/Qt5MainWindow.hxx
+++ b/vcl/inc/qt5/Qt5MainWindow.hxx
@@ -28,9 +28,10 @@ class Qt5MainWindow : public QMainWindow
{
Q_OBJECT
- Qt5Frame* m_pFrame;
+ Qt5Frame& m_rFrame;
virtual void closeEvent(QCloseEvent* pEvent) override;
+ void moveEvent(QMoveEvent*) override;
public:
Qt5MainWindow(Qt5Frame& rFrame, QWidget* parent = Q_NULLPTR,