Channel marker: frequency scale display option

This commit is contained in:
f4exb 2017-08-26 09:33:04 +02:00
parent 480257a5dd
commit a464ccd2cd
1 changed files with 2 additions and 4 deletions

View File

@ -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();
} }