diff options
| author | Johann Latocha | 2011-06-04 12:36:31 +0200 |
|---|---|---|
| committer | Johann Latocha | 2011-06-04 12:36:31 +0200 |
| commit | 4b243af3de3ff2534a0d87225f52074490bdf8fd (patch) | |
| tree | 673eaa89cfc8e19f49e35ae8299913212b71d7a1 /src/gui/projectionDialog.cpp | |
| parent | [PVS] VNCpasswd bug fixed (diff) | |
| download | pvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.tar.gz pvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.tar.xz pvs-4b243af3de3ff2534a0d87225f52074490bdf8fd.zip | |
Enhancement #831
Diffstat (limited to 'src/gui/projectionDialog.cpp')
| -rw-r--r-- | src/gui/projectionDialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/projectionDialog.cpp b/src/gui/projectionDialog.cpp index c091f54..5339df0 100644 --- a/src/gui/projectionDialog.cpp +++ b/src/gui/projectionDialog.cpp @@ -51,9 +51,17 @@ void ProjectionDialog::setupContent(QList<QString> content) { if (!content.isEmpty()) { + // get a list of all dozent machines + QStringList dozentList; + QList<ConnectionFrame*> clients = MainWindow::getConnectionWindow()->getAllFrameOnWindow(); + foreach (ConnectionFrame *client, clients) + if (client->isDozent()) + dozentList.append(client->getTaskbarTitle()); + QString item; foreach(item, content) { + if (dozentList.contains(item)) item.append(" (Tutor PC)"); QCheckBox *checkbox = new QCheckBox(item,this); pui->verticalLayout_2->addWidget(checkbox); checkList.push_back(checkbox); |
