mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Prevent popup menu when scrolling tables
This commit is contained in:
parent
fe12d7f875
commit
c27dc71860
@ -48,8 +48,12 @@ bool TableTapAndHold::eventFilter(QObject *obj, QEvent *event)
|
|||||||
if (vHeader) {
|
if (vHeader) {
|
||||||
point.setX(point.x() - vHeader->width());
|
point.setX(point.x() - vHeader->width());
|
||||||
}
|
}
|
||||||
emit tapAndHold(point);
|
QSize size = m_table->viewport()->size();
|
||||||
return true;
|
if ((point.x() >= 0) && (point.x() < size.width()) && (point.y() >= 0) && (point.y() < size.height()))
|
||||||
|
{
|
||||||
|
emit tapAndHold(point);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QObject::eventFilter(obj, event);
|
return QObject::eventFilter(obj, event);
|
||||||
|
Loading…
Reference in New Issue
Block a user