mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 05:37:50 -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:
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));
|
int rc = nn_setsockopt (m_sender, NN_SOL_SOCKET, NN_SNDTIMEO, &millis, sizeof (millis));
|
||||||
assert (rc == 0);
|
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_sec = 0;
|
||||||
m_startingTimeStamp.tv_usec = 0;
|
m_startingTimeStamp.tv_usec = 0;
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
@ -626,9 +629,9 @@ void SDRdaemonFECGui::updateWithStreamTime()
|
|||||||
ui->minNbBlocksText->setText(tr("%1").arg(s));
|
ui->minNbBlocksText->setText(tr("%1").arg(s));
|
||||||
|
|
||||||
if (m_allBlocksReceived) {
|
if (m_allBlocksReceived) {
|
||||||
ui->minNbBlocksText->setStyleSheet("QLabel { background-color : green; }");
|
ui->minNbBlocksText->setPalette(m_paletteGreenText);
|
||||||
} else {
|
} else {
|
||||||
ui->minNbBlocksText->setStyleSheet("QLabel { background:rgb(56,56,56); }");
|
ui->minNbBlocksText->setPalette(m_paletteWhiteText);
|
||||||
}
|
}
|
||||||
|
|
||||||
s = QString::number(m_avgNbBlocks, 'f', 1);
|
s = QString::number(m_avgNbBlocks, 'f', 1);
|
||||||
|
@ -92,6 +92,9 @@ private:
|
|||||||
bool m_dcBlock;
|
bool m_dcBlock;
|
||||||
bool m_iqCorrection;
|
bool m_iqCorrection;
|
||||||
|
|
||||||
|
QPalette m_paletteGreenText;
|
||||||
|
QPalette m_paletteWhiteText;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
|
|
||||||
void displayConfigurationParameters(uint32_t freq,
|
void displayConfigurationParameters(uint32_t freq,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user