mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
DSD demod: display UDP address and port in the button tooltip
This commit is contained in:
parent
82894cb50b
commit
c76a617be4
@ -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)
|
||||
|
@ -122,6 +122,7 @@ private:
|
||||
void blockApplySettings(bool block);
|
||||
void applySettings(bool force = false);
|
||||
void updateMyPosition();
|
||||
void displayUDPAddress();
|
||||
|
||||
void leaveEvent(QEvent*);
|
||||
void enterEvent(QEvent*);
|
||||
|
Loading…
Reference in New Issue
Block a user