diff options
author | Christian Klinger | 2016-05-30 11:55:35 +0200 |
---|---|---|
committer | Christian Klinger | 2016-05-30 11:55:35 +0200 |
commit | b5cc655b555d729a25de54d4edffba5e214d937e (patch) | |
tree | 7b5e5884eccf3d07fc987ce990f770718b7e758d /src/server/connectionframe/connectionframe.cpp | |
parent | Neues Dozentenlogo. (diff) | |
download | pvs2-b5cc655b555d729a25de54d4edffba5e214d937e.tar.gz pvs2-b5cc655b555d729a25de54d4edffba5e214d937e.tar.xz pvs2-b5cc655b555d729a25de54d4edffba5e214d937e.zip |
Added examMode to server (this also changes the style of the toolbar)
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r-- | src/server/connectionframe/connectionframe.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 68160b5..e274bd5 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -16,6 +16,7 @@ #include "connectionframe.h" #include "../net/client.h" +#include "../util/global.h" #include <QPixmap> #include <QImage> #include <cassert> @@ -270,8 +271,10 @@ void ConnectionFrame::mouseDoubleClickEvent(QMouseEvent* event) void ConnectionFrame::paintEvent(QPaintEvent *event) { QGroupBox::paintEvent(event); - if (_remoteScreen.isNull()) + if (_remoteScreen.isNull() || Global::isExam()) { return; + } + QPainter painter(this); painter.drawPixmap((this->width() - _remoteScreen.width()) / 2, 4, _remoteScreen); event->accept(); |