1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

SDRdaemon plugin: report frame soze in UI. Reorganized UI

This commit is contained in:
f4exb
2016-02-23 18:09:20 +01:00
parent 6b368f10b6
commit 16c3e3e72f
6 changed files with 167 additions and 138 deletions
@@ -200,6 +200,7 @@ bool SDRdaemonGui::handleMessage(const Message& message)
m_startingTimeStamp.tv_sec = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).get_tv_sec();
m_startingTimeStamp.tv_usec = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).get_tv_usec();
m_syncLocked = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).getSyncLock();
m_frameSize = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).getFrameSize();
updateWithStreamTime();
return true;
}
@@ -308,6 +309,9 @@ void SDRdaemonGui::updateWithStreamTime()
} else {
ui->streamLocked->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
}
QString s = QString::number(m_frameSize / 1024.0, 'f', 0);
ui->frameSizeText->setText(tr("%1").arg(s));
}
void SDRdaemonGui::tick()