summaryrefslogtreecommitdiffstats
path: root/src/gui/projectionDialog.cpp
diff options
context:
space:
mode:
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);