1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 19:28:47 -05:00

DSD demod: display UDP address and port in the button tooltip

This commit is contained in:
f4exb 2017-08-25 09:32:17 +02:00
parent 82894cb50b
commit c76a617be4
2 changed files with 8 additions and 0 deletions

View File

@ -175,6 +175,7 @@ bool DSDDemodGUI::deserialize(const QByteArray& data)
m_channelMarker.setUDPReceivePort(u32tmp);
d.readU32(20, &u32tmp, 9999);
m_channelMarker.setUDPSendPort(u32tmp);
displayUDPAddress();
blockApplySettings(false);
m_channelMarker.blockSignals(false);
@ -365,6 +366,7 @@ DSDDemodGUI::DSDDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
ui->scopeGUI->setBuddies(m_scopeVis->getInputMessageQueue(), m_scopeVis, ui->glScope);
updateMyPosition();
displayUDPAddress();
applySettings(true);
}
@ -392,6 +394,11 @@ void DSDDemodGUI::updateMyPosition()
}
}
void DSDDemodGUI::displayUDPAddress()
{
ui->udpOutput->setToolTip(QString("Copy audio output to UDP %1:%2").arg(m_channelMarker.getUDPAddress()).arg(m_channelMarker.getUDPSendPort()));
}
void DSDDemodGUI::applySettings(bool force)
{
if (m_doApplySettings)

View File

@ -122,6 +122,7 @@ private:
void blockApplySettings(bool block);
void applySettings(bool force = false);
void updateMyPosition();
void displayUDPAddress();
void leaveEvent(QEvent*);
void enterEvent(QEvent*);