diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:12:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-19 21:34:46 +0200 |
commit | 3aef606f2758172a27718a06fea0ff9080e4d80f (patch) | |
tree | ad323c90301d80bbb3b68163d8b87e5402b687ed /vcl/qt5/Qt5Frame.cxx | |
parent | 5afba3e12c8d4eb1ebb8e087134eb87593bb017a (diff) |
use tools::Long in vcl
Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5/Qt5Frame.cxx')
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index f008f4538bd7..41a5a5436a67 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -430,7 +430,7 @@ void Qt5Frame::Show(bool bVisible, bool /*bNoActivate*/) pSalInst->RunInMainThread([this, bVisible]() { asChild()->setVisible(bVisible); }); } -void Qt5Frame::SetMinClientSize(long nWidth, long nHeight) +void Qt5Frame::SetMinClientSize(tools::Long nWidth, tools::Long nHeight) { if (!isChild()) { @@ -439,7 +439,7 @@ void Qt5Frame::SetMinClientSize(long nWidth, long nHeight) } } -void Qt5Frame::SetMaxClientSize(long nWidth, long nHeight) +void Qt5Frame::SetMaxClientSize(tools::Long nWidth, tools::Long nHeight) { if (!isChild()) { @@ -513,7 +513,8 @@ void Qt5Frame::SetDefaultSize() assert(!m_bDefaultSize); } -void Qt5Frame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags) +void Qt5Frame::SetPosSize(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, + sal_uInt16 nFlags) { if (!isWindow() || isChild(true, false)) return; @@ -578,7 +579,7 @@ void Qt5Frame::SetPosSize(long nX, long nY, long nWidth, long nHeight, sal_uInt1 asChild()->move(round(nX / devicePixelRatioF()), round(nY / devicePixelRatioF())); } -void Qt5Frame::GetClientSize(long& rWidth, long& rHeight) +void Qt5Frame::GetClientSize(tools::Long& rWidth, tools::Long& rHeight) { rWidth = round(m_pQWidget->width() * devicePixelRatioF()); rHeight = round(m_pQWidget->height() * devicePixelRatioF()); @@ -795,7 +796,7 @@ void Qt5Frame::CaptureMouse(bool bMouse) m_pQWidget->releaseMouse(); } -void Qt5Frame::SetPointerPos(long nX, long nY) +void Qt5Frame::SetPointerPos(tools::Long nX, tools::Long nY) { // some cursor already exists (and it has m_ePointerStyle shape) // so here we just reposition it @@ -1179,7 +1180,8 @@ void Qt5Frame::BeginSetClipRegion(sal_uInt32) m_aRegion = QRegion(QRect(QPoint(0, 0), m_pQWidget->size())); } -void Qt5Frame::UnionClipRegion(long nX, long nY, long nWidth, long nHeight) +void Qt5Frame::UnionClipRegion(tools::Long nX, tools::Long nY, tools::Long nWidth, + tools::Long nHeight) { m_aRegion = m_aRegion.united(scaledQRect(QRect(nX, nY, nWidth, nHeight), 1 / devicePixelRatioF())); |