1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

LimeSDR: paint stream status icon in green only if stream is active. If stream is inactive but a valid status is obtained it is paint in blue

This commit is contained in:
f4exb 2017-10-27 00:22:58 +02:00
parent 9f765a9732
commit 7ca778038e
2 changed files with 12 additions and 2 deletions

View File

@ -163,7 +163,12 @@ bool LimeSDROutputGUI::handleMessage(const Message& message)
if (report.getSuccess())
{
if (report.getActive()) {
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
} else {
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : blue; }");
}
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
if (report.getUnderrun() > 0) {

View File

@ -161,7 +161,12 @@ bool LimeSDRInputGUI::handleMessage(const Message& message)
if (report.getSuccess())
{
if (report.getActive()) {
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
} else {
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : blue; }");
}
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
if (report.getUnderrun() > 0) {