mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 05:22:25 -04:00
Channel marker: frequency scale display option
This commit is contained in:
parent
480257a5dd
commit
a464ccd2cd
@ -36,7 +36,6 @@ ChannelMarker::ChannelMarker(QObject* parent) :
|
|||||||
m_highlighted(false),
|
m_highlighted(false),
|
||||||
m_color(m_colorTable[m_nextColor]),
|
m_color(m_colorTable[m_nextColor]),
|
||||||
m_movable(true),
|
m_movable(true),
|
||||||
m_udpAddress("127.0.0.1"),
|
|
||||||
m_udpReceivePort(9999),
|
m_udpReceivePort(9999),
|
||||||
m_udpSendPort(9998),
|
m_udpSendPort(9998),
|
||||||
m_fScaleDisplayType(FScaleDisplay_freq)
|
m_fScaleDisplayType(FScaleDisplay_freq)
|
||||||
@ -44,8 +43,7 @@ ChannelMarker::ChannelMarker(QObject* parent) :
|
|||||||
++m_nextColor;
|
++m_nextColor;
|
||||||
if(m_colorTable[m_nextColor] == 0)
|
if(m_colorTable[m_nextColor] == 0)
|
||||||
m_nextColor = 0;
|
m_nextColor = 0;
|
||||||
m_displayAddressReceive = QString(tr("%1:%2").arg(getUDPAddress()).arg(getUDPSendPort()));
|
setUDPAddress("127.0.0.1");
|
||||||
m_displayAddressReceive = QString(tr("%1:%2").arg(getUDPAddress()).arg(getUDPReceivePort()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelMarker::setTitle(const QString& title)
|
void ChannelMarker::setTitle(const QString& title)
|
||||||
@ -120,6 +118,6 @@ void ChannelMarker::setUDPReceivePort(quint16 port)
|
|||||||
void ChannelMarker::setUDPSendPort(quint16 port)
|
void ChannelMarker::setUDPSendPort(quint16 port)
|
||||||
{
|
{
|
||||||
m_udpSendPort = port;
|
m_udpSendPort = port;
|
||||||
m_displayAddressReceive = QString(tr("%1:%2").arg(getUDPAddress()).arg(getUDPSendPort()));
|
m_displayAddressSend = QString(tr("%1:%2").arg(getUDPAddress()).arg(getUDPSendPort()));
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user