summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-04-03 11:02:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-04-03 11:02:30 +0200
commit8c50aff2175e85c54957d98ce32af40a3a87e168 (patch)
tree69f9985fa745e7f78f2037d0b1f5189bade68e76 /vcl/qt5
parentd0421fecae14a8ff55b6d92b8b86bf40d4a18983 (diff)
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
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/Qt5Frame.cxx2
-rw-r--r--vcl/qt5/Qt5Frame.hxx2
2 files changed, 2 insertions, 2 deletions
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;