diff options
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(); |