From 6f4fb557610beccb225a6bf3d46c0118b221bd99 Mon Sep 17 00:00:00 2001 From: sr Date: Tue, 5 Feb 2013 17:28:19 +0100 Subject: [SERVER] Implement all four VNC projection modes --- src/server/connectionframe/connectionframe.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/server/connectionframe/connectionframe.cpp') diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 1544c76..6bfce81 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -110,6 +110,7 @@ void ConnectionFrame::assignClient(Client* client) if (_timerId == 0) _timerId = startTimer(1000 + qrand() % 150); this->updateColor(); + _client->setTutor(_isTutor); } void ConnectionFrame::showDefaultThumb() @@ -213,6 +214,14 @@ void ConnectionFrame::setSelection(bool selected) this->updateColor(); } +void ConnectionFrame::setTutor(bool b) +{ + if (_isTutor != b && _client != NULL) + _client->setTutor(b); + _isTutor = b; + this->updateColor(); +} + void ConnectionFrame::updateColor() { if (_client == NULL) -- cgit v1.2.3-55-g7522