diff options
author | Christian Klinger | 2016-09-27 15:38:39 +0200 |
---|---|---|
committer | Christian Klinger | 2016-09-27 15:38:39 +0200 |
commit | 1f6493e319016f8c375b62f2109ee57f5cea828d (patch) | |
tree | ac1635d23eaaf7090f6cc21767536ddcc9c76dae /src/client/clientapp | |
parent | clients in exam-mode no longer send a screenshot. Also some refactoring. (diff) | |
download | pvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.tar.gz pvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.tar.xz pvs2-1f6493e319016f8c375b62f2109ee57f5cea828d.zip |
Implemented 'majority vote' to determine the toolbar options.
clients in exam-mode are also displayed differently.
Diffstat (limited to 'src/client/clientapp')
-rw-r--r-- | src/client/clientapp/clientapp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/clientapp/clientapp.cpp b/src/client/clientapp/clientapp.cpp index 3d2dba1..f177d44 100644 --- a/src/client/clientapp/clientapp.cpp +++ b/src/client/clientapp/clientapp.cpp @@ -1,6 +1,6 @@ #include "clientapp.h" -ClientApp::ClientApp(int& argc, char** argv) : QApplication(argc, argv), _connectionMode(ConnectionMode::None) { +ClientApp::ClientApp(int& argc, char** argv) : QApplication(argc, argv), _connectionMode(ConnectionMode::None), _examMode(false) { /* some values */ setOrganizationName("openslx"); setOrganizationDomain("openslx.org"); @@ -32,6 +32,7 @@ ClientApp::ClientApp(int& argc, char** argv) : QApplication(argc, argv), _connec void ClientApp::parseParameters() { for (QString a : arguments()) { if (a == "--exam-mode") { + qDebug() << "setting exam-mode to true"; _examMode = true; } else if (a == "--auto") { _connectionMode = ConnectionMode::Auto; |