[Libreoffice-commits] core.git: vcl/qt5
Stephan Bergmann
sbergman at redhat.com
Tue Apr 3 09:04:41 UTC 2018
vcl/qt5/Qt5Frame.cxx | 2 +-
vcl/qt5/Qt5Frame.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 8c50aff2175e85c54957d98ce32af40a3a87e168
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Apr 3 11:02:30 2018 +0200
Fix Library_vclplug_qt5
...after 8bc951daf79decbd8a599a409c6d33c5456710e0 "long->sal_Int32 in
tools/gen.hxx". (According to <https://doc.qt.io/qt-5/qwidget.html>,
QtWidget::height and QtWidget::width both return int, so the change should be
OK, assuming int isn't larger than sal_Int32.)
Change-Id: I847212db59cceb49743801d6cc204eb7b2e9ea9a
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index c8f8609ea14e..151e8adca44f 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -318,7 +318,7 @@ void Qt5Frame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt1
m_bDefaultPos = false;
}
-void Qt5Frame::GetClientSize(long& rWidth, long& rHeight)
+void Qt5Frame::GetClientSize(sal_Int32& rWidth, sal_Int32& rHeight)
{
rWidth = m_pQWidget->width();
rHeight = m_pQWidget->height();
diff --git a/vcl/qt5/Qt5Frame.hxx b/vcl/qt5/Qt5Frame.hxx
index b5f31387b3e2..474990352eee 100644
--- a/vcl/qt5/Qt5Frame.hxx
+++ b/vcl/qt5/Qt5Frame.hxx
@@ -96,7 +96,7 @@ public:
virtual void SetMaxClientSize(long nWidth, long nHeight) override;
virtual void SetPosSize(long nX, long nY, long nWidth, long nHeight,
sal_uInt16 nFlags) override;
- virtual void GetClientSize(long& rWidth, long& rHeight) override;
+ virtual void GetClientSize(sal_Int32& rWidth, sal_Int32& rHeight) override;
virtual void GetWorkArea(tools::Rectangle& rRect) override;
virtual SalFrame* GetParent() const override;
virtual void SetWindowState(const SalFrameState* pState) override;
More information about the Libreoffice-commits
mailing list