summaryrefslogtreecommitdiffstats
path: root/src/gui/projectionDialog.cpp
diff options
context:
space:
mode:
authorJohann Latocha2011-06-04 12:36:31 +0200
committerJohann Latocha2011-06-04 12:36:31 +0200
commit4b243af3de3ff2534a0d87225f52074490bdf8fd (patch)
tree673eaa89cfc8e19f49e35ae8299913212b71d7a1 /src/gui/projectionDialog.cpp
parent[PVS] VNCpasswd bug fixed (diff)
downloadpvs-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.cpp8
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);