diff options
author | sr | 2013-02-05 17:28:19 +0100 |
---|---|---|
committer | sr | 2013-02-05 17:28:19 +0100 |
commit | 6f4fb557610beccb225a6bf3d46c0118b221bd99 (patch) | |
tree | fb2c7cb6cd7b09294fa3ca5cb7eef902bddac0e7 /src/server/connectionframe/connectionframe.cpp | |
parent | ... (diff) | |
download | pvs2-6f4fb557610beccb225a6bf3d46c0118b221bd99.tar.gz pvs2-6f4fb557610beccb225a6bf3d46c0118b221bd99.tar.xz pvs2-6f4fb557610beccb225a6bf3d46c0118b221bd99.zip |
[SERVER] Implement all four VNC projection modes
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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) |