From ced472457e3793a31c4e51fcc9a35b373f633d2b Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 8 Jul 2020 19:07:21 +1000 Subject: Fix deprecated Qt call to use currently supported call. --- qt/ScintillaEditBase/PlatQt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt/ScintillaEditBase/PlatQt.h') diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index 671f3f196..054f55bd3 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -59,6 +59,10 @@ inline Point PointFromQPoint(QPoint qp) return Point(qp.x(), qp.y()); } +constexpr PRectangle RectangleInset(PRectangle rc, XYPOSITION delta) noexcept { + return PRectangle(rc.left + delta, rc.top + delta, rc.right - delta, rc.bottom - delta); +} + class SurfaceImpl : public Surface { private: QPaintDevice *device; -- cgit v1.2.3