mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
SDRdaemonFEC plugin: change color of text for min total number of blocks display label to be compatible with Windows version
This commit is contained in:
parent
b157186b32
commit
860bad12ca
@ -72,6 +72,9 @@ SDRdaemonFECGui::SDRdaemonFECGui(DeviceAPI *deviceAPI, QWidget* parent) :
|
||||
int rc = nn_setsockopt (m_sender, NN_SOL_SOCKET, NN_SNDTIMEO, &millis, sizeof (millis));
|
||||
assert (rc == 0);
|
||||
|
||||
m_paletteGreenText.setColor(QPalette::WindowText, Qt::green);
|
||||
m_paletteWhiteText.setColor(QPalette::WindowText, Qt::white);
|
||||
|
||||
m_startingTimeStamp.tv_sec = 0;
|
||||
m_startingTimeStamp.tv_usec = 0;
|
||||
ui->setupUi(this);
|
||||
@ -626,9 +629,9 @@ void SDRdaemonFECGui::updateWithStreamTime()
|
||||
ui->minNbBlocksText->setText(tr("%1").arg(s));
|
||||
|
||||
if (m_allBlocksReceived) {
|
||||
ui->minNbBlocksText->setStyleSheet("QLabel { background-color : green; }");
|
||||
ui->minNbBlocksText->setPalette(m_paletteGreenText);
|
||||
} else {
|
||||
ui->minNbBlocksText->setStyleSheet("QLabel { background:rgb(56,56,56); }");
|
||||
ui->minNbBlocksText->setPalette(m_paletteWhiteText);
|
||||
}
|
||||
|
||||
s = QString::number(m_avgNbBlocks, 'f', 1);
|
||||
|
@ -92,6 +92,9 @@ private:
|
||||
bool m_dcBlock;
|
||||
bool m_iqCorrection;
|
||||
|
||||
QPalette m_paletteGreenText;
|
||||
QPalette m_paletteWhiteText;
|
||||
|
||||
void displaySettings();
|
||||
|
||||
void displayConfigurationParameters(uint32_t freq,
|
||||
|
Loading…
Reference in New Issue
Block a user