Skip to content

Commit 6ee154d

Browse files
authored
Merge pull request #141 from sappelhoff/tooltip
ENH: add tooltips to available streams
2 parents 010b54c + 762a1d0 commit 6ee154d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/mainwindow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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\nSource ID: %3\nHostname: %4")
355+
.arg(QString::fromStdString(k.name),
356+
QString::fromStdString(k.type),
357+
QString::fromStdString(k.id),
358+
QString::fromStdString(k.host)));
354359
ui->streamList->addItem(item);
355360
}
356361

0 commit comments

Comments
 (0)