mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-25 03:32:29 -04: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);
|
m_channelMarker.setUDPReceivePort(u32tmp);
|
||||||
d.readU32(20, &u32tmp, 9999);
|
d.readU32(20, &u32tmp, 9999);
|
||||||
m_channelMarker.setUDPSendPort(u32tmp);
|
m_channelMarker.setUDPSendPort(u32tmp);
|
||||||
|
displayUDPAddress();
|
||||||
|
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
m_channelMarker.blockSignals(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);
|
ui->scopeGUI->setBuddies(m_scopeVis->getInputMessageQueue(), m_scopeVis, ui->glScope);
|
||||||
|
|
||||||
updateMyPosition();
|
updateMyPosition();
|
||||||
|
displayUDPAddress();
|
||||||
applySettings(true);
|
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)
|
void DSDDemodGUI::applySettings(bool force)
|
||||||
{
|
{
|
||||||
if (m_doApplySettings)
|
if (m_doApplySettings)
|
||||||
|
@ -122,6 +122,7 @@ private:
|
|||||||
void blockApplySettings(bool block);
|
void blockApplySettings(bool block);
|
||||||
void applySettings(bool force = false);
|
void applySettings(bool force = false);
|
||||||
void updateMyPosition();
|
void updateMyPosition();
|
||||||
|
void displayUDPAddress();
|
||||||
|
|
||||||
void leaveEvent(QEvent*);
|
void leaveEvent(QEvent*);
|
||||||
void enterEvent(QEvent*);
|
void enterEvent(QEvent*);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user