aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-07-08 19:07:21 +1000
committerNeil <nyamatongwe@gmail.com>2020-07-08 19:07:21 +1000
commitced472457e3793a31c4e51fcc9a35b373f633d2b (patch)
tree37b5aae8b8b9891c5410100fa30725e009070c85 /qt/ScintillaEditBase/PlatQt.h
parent3073fd6f55dad53feb8d6d8dd34ee94dd7295164 (diff)
downloadscintilla-mirror-ced472457e3793a31c4e51fcc9a35b373f633d2b.tar.gz
Fix deprecated Qt call to use currently supported call.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.h')
-rw-r--r--qt/ScintillaEditBase/PlatQt.h4
1 files changed, 4 insertions, 0 deletions
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;