mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-06 07:07:48 -04: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:
parent
9f765a9732
commit
7ca778038e
@ -163,7 +163,12 @@ bool LimeSDROutputGUI::handleMessage(const Message& message)
|
|||||||
|
|
||||||
if (report.getSuccess())
|
if (report.getSuccess())
|
||||||
{
|
{
|
||||||
|
if (report.getActive()) {
|
||||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
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)));
|
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
|
||||||
|
|
||||||
if (report.getUnderrun() > 0) {
|
if (report.getUnderrun() > 0) {
|
||||||
|
@ -161,7 +161,12 @@ bool LimeSDRInputGUI::handleMessage(const Message& message)
|
|||||||
|
|
||||||
if (report.getSuccess())
|
if (report.getSuccess())
|
||||||
{
|
{
|
||||||
|
if (report.getActive()) {
|
||||||
ui->streamStatusLabel->setStyleSheet("QLabel { background-color : green; }");
|
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)));
|
ui->streamLinkRateText->setText(tr("%1 MB/s").arg(QString::number(report.getLinkRate() / 1000000.0f, 'f', 3)));
|
||||||
|
|
||||||
if (report.getUnderrun() > 0) {
|
if (report.getUnderrun() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user