diff options
author | Manuel Schneider | 2014-07-22 11:18:32 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-07-22 11:18:32 +0200 |
commit | 01cd5fdbaed7ba5745a48684e01414a3f5aeffd7 (patch) | |
tree | 797e7f3328477c0dc385265b8949d65ae5b00cfe | |
parent | Let the client quit if to much params. Let the client be able to connect to t... (diff) | |
download | pvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.tar.gz pvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.tar.xz pvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.zip |
Remove dead button action.
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 39 | ||||
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 1 |
2 files changed, 0 insertions, 40 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index ec55f75..d7cab75 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -678,45 +678,6 @@ void MainWindow::onButtonTutorToAll() } /***************************************************************************//** - * Button projection from one student to all the others. - * First get which client is projectionSource and set this one as from. - * Set projection source for all clients,except the selected one, to false. - */ -void MainWindow::onButtonStudentToAll() -{ - ui->action_Lock->setChecked(false); - - if (getSelectedFrame() == NULL) - QMessageBox::critical(this, tr("Projection"), sStrSourceNdef); - if (getSelectedFrame()->client() == NULL) - QMessageBox::critical(this, tr("Projection"), sStrSourceOffline); - else - { - DisableButtons(); - - if (_mode != Mode::Broadcast) - { - // Set all clients as watchers - for (QList<ConnectionFrame*>::iterator it(_clientFrames.begin()); it != _clientFrames.end(); ++it) - { - if ((*it)->client() != NULL && (*it)->client() != getClientFromId(_streamingSource)) - (*it)->client()->setWatcher(true); - } - } - else // If this mode is already active - { - // Stop reset everything - reset(); - _mode = Mode::None; - return; - } - - _mode = Mode::Broadcast; - startVncServerIfNecessary(getSelectedFrame()->client()->id()); - } -} - -/***************************************************************************//** * Handle the projection from Tutor to specific student. * Set the client who is tutor as from and the selected client as to. */ diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index 8b0f133..190f836 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -98,7 +98,6 @@ protected slots: void onSessionNameUpdate(); void onButtonLock(bool checked); - void onButtonStudentToAll(); void onButtonStudentToTutor(); void onButtonStudentToTutorExclusive(); void onButtonTutorToAll(); |