mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 22:27:53 -04:00
Merge pull request #1570 from srcejon/fix_channel_freq_while_dragging
Spectrum: Keep frequency displayed while channel is being dragged
This commit is contained in:
commit
5ef5b2a53d
@ -3930,12 +3930,17 @@ void GLSpectrumView::mouseMoveEvent(QMouseEvent* event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_channelMarkerStates[i]->m_channelMarker->getHighlighted())
|
else if (m_channelMarkerStates[i]->m_channelMarker->getHighlighted())
|
||||||
|
{
|
||||||
|
// Don't clear highlight while dragging a channel, as we want the
|
||||||
|
// frequency of the channel to be continuously displayed
|
||||||
|
if (m_cursorState != CSChannelMoving)
|
||||||
{
|
{
|
||||||
m_channelMarkerStates[i]->m_channelMarker->setHighlightedByCursor(false);
|
m_channelMarkerStates[i]->m_channelMarker->setHighlightedByCursor(false);
|
||||||
channelMarkerChanged();
|
channelMarkerChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (m_cursorState == CSChannel)
|
if (m_cursorState == CSChannel)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user