diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-12-17 13:29:34 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2016-06-28 10:18:27 +0000 |
commit | 1f1b773a35a1403af02c5f5a359933bfc459457d (patch) | |
tree | f3b4f79213da529ce9898e3dd3ffd6de53427b05 /src/plugins/platforms/vnc/qvncscreen.h | |
parent | ef4db5a347c6ad1ddb75027c8449ade64b731d08 (diff) |
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 <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/plugins/platforms/vnc/qvncscreen.h')
-rw-r--r-- | src/plugins/platforms/vnc/qvncscreen.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 |