mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-23 12:48:49 -04:00
Replace deprecated QWheelEvent.pos by position
This commit is contained in:
parent
c29d3b6433
commit
a9f1c072d9
@ -3674,7 +3674,7 @@ void GLSpectrum::channelMarkerMove(QWheelEvent *event, int mul)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (m_channelMarkerStates[i]->m_rect.contains(event->pos()))
|
||||
if (m_channelMarkerStates[i]->m_rect.contains(event->position()))
|
||||
{
|
||||
int freq = m_channelMarkerStates[i]->m_channelMarker->getCenterFrequency();
|
||||
|
||||
|
@ -213,7 +213,7 @@ private:
|
||||
QMatrix4x4 m_glMatrixDsbFreqScale;
|
||||
QMatrix4x4 m_glMatrixHistogram;
|
||||
QMatrix4x4 m_glMatrixDsbHistogram;
|
||||
QRect m_rect;
|
||||
QRectF m_rect;
|
||||
|
||||
ChannelMarkerState(ChannelMarker* channelMarker) :
|
||||
m_channelMarker(channelMarker)
|
||||
|
@ -367,7 +367,7 @@ void ValueDial::mouseMoveEvent(QMouseEvent *event)
|
||||
void ValueDial::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
int i;
|
||||
i = (event->x() - 1) / m_digitWidth;
|
||||
i = (event->position().x() - 1) / m_digitWidth;
|
||||
|
||||
if (m_text[i] != m_groupSeparator) {
|
||||
m_hightlightedDigit = i;
|
||||
|
@ -414,7 +414,7 @@ void ValueDialZ::wheelEvent(QWheelEvent* event)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = (event->x() - 1) / m_digitWidth;
|
||||
i = (event->position().x() - 1) / m_digitWidth;
|
||||
|
||||
if ((m_text[i] != m_groupSeparator) && (m_text[i] != m_decSeparator)) {
|
||||
m_hightlightedDigit = i;
|
||||
|
Loading…
Reference in New Issue
Block a user