Skip to content

Commit 6acf2be

Browse files
committed
ENH: add tooltips to available streams
1 parent 6d65fa9 commit 6acf2be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/mainwindow.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void MainWindow::load_config(QString filename) {
181181
// StorageLocation
182182
QString studyRoot;
183183
legacyTemplate.clear();
184-
184+
185185
if (pt.contains("StorageLocation")) {
186186
if (pt.contains("StudyRoot"))
187187
throw std::runtime_error("StorageLocation cannot be used if StudyRoot is also specified.");
@@ -351,6 +351,11 @@ std::vector<lsl::stream_info> MainWindow::refreshStreams() {
351351
auto *item = new QListWidgetItem(k.listName(), ui->streamList);
352352
item->setCheckState(k.checked ? Qt::Checked : Qt::Unchecked);
353353
item->setForeground(good_brush);
354+
item->setToolTip(QString("Name: %1\nType: %2\nHostname: %3\nSource ID: %4")
355+
.arg(QString::fromStdString(k.name),
356+
QString::fromStdString(k.type),
357+
QString::fromStdString(k.hostname),
358+
QString::fromStdString(k.id)));
354359
ui->streamList->addItem(item);
355360
}
356361

@@ -431,7 +436,7 @@ void MainWindow::startRecording() {
431436
". Please check your permissions.");
432437
return;
433438
}
434-
439+
435440
std::vector<std::string> watchfor;
436441
for (const QString &missing : std::as_const(missingStreams)) {
437442
std::string query;

0 commit comments

Comments
 (0)