From 4b243af3de3ff2534a0d87225f52074490bdf8fd Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Sat, 4 Jun 2011 12:36:31 +0200 Subject: Enhancement #831 --- src/gui/projectionDialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/projectionDialog.cpp') 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 content) { if (!content.isEmpty()) { + // get a list of all dozent machines + QStringList dozentList; + QList 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); -- cgit v1.2.3-55-g7522