From 1f1b773a35a1403af02c5f5a359933bfc459457d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 17 Dec 2015 13:29:34 +0100 Subject: Support for client side cursors in the VNC plugin Client side cursors are a major performance optimization, avoiding the need to transmit images to the client just because the cursor has moved. Change-Id: Icdf4ff948571d39d82c86d251bca46390889d02f Reviewed-by: Frederik Gladhorn --- src/plugins/platforms/vnc/qvncscreen.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/plugins/platforms/vnc/qvncscreen.h') diff --git a/src/plugins/platforms/vnc/qvncscreen.h b/src/plugins/platforms/vnc/qvncscreen.h index 5911121169..db2d3ac959 100644 --- a/src/plugins/platforms/vnc/qvncscreen.h +++ b/src/plugins/platforms/vnc/qvncscreen.h @@ -49,6 +49,7 @@ class QFbCursor; class QTcpSocket; class QVncServer; class QVncDirtyMap; +class QVncClientCursor; class QVncScreen : public QFbScreen { @@ -64,7 +65,9 @@ public: QRegion doRedraw() Q_DECL_OVERRIDE; QImage *image() const { return mScreenImage; } -// QPlatformCursor *cursor() const Q_DECL_OVERRIDE { return mCursor; } + void enableClientCursor(); + void disableClientCursor(); + QPlatformCursor *cursor() const Q_DECL_OVERRIDE; void clearDirty() { dirtyRegion = QRegion(); } @@ -76,7 +79,7 @@ public: QRegion dirtyRegion; int refreshRate = 30; QVncServer *vncServer = 0; - + QVncClientCursor *clientCursor = 0; }; QT_END_NAMESPACE -- cgit v1.2.3