1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04: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:
Edouard Griffiths 2016-07-28 05:57:59 +02:00
parent b157186b32
commit 860bad12ca
2 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -92,6 +92,9 @@ private:
bool m_dcBlock;
bool m_iqCorrection;
QPalette m_paletteGreenText;
QPalette m_paletteWhiteText;
void displaySettings();
void displayConfigurationParameters(uint32_t freq,