From b5cc655b555d729a25de54d4edffba5e214d937e Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Mon, 30 May 2016 11:55:35 +0200 Subject: Added examMode to server (this also changes the style of the toolbar) --- src/server/connectionframe/connectionframe.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server/connectionframe') 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 #include #include @@ -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(); -- cgit v1.2.3-55-g7522