summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorManuel Schneider2014-07-22 11:18:32 +0200
committerManuel Schneider2014-07-22 11:18:32 +0200
commit01cd5fdbaed7ba5745a48684e01414a3f5aeffd7 (patch)
tree797e7f3328477c0dc385265b8949d65ae5b00cfe /src/server/mainwindow/mainwindow.cpp
parentLet the client quit if to much params. Let the client be able to connect to t... (diff)
downloadpvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.tar.gz
pvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.tar.xz
pvs2-01cd5fdbaed7ba5745a48684e01414a3f5aeffd7.zip
Remove dead button action.
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r--src/server/mainwindow/mainwindow.cpp39
1 files changed, 0 insertions, 39 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.
*/