Fix deprecation warning about QHoverEvent::pos
We should be using position().
This commit is contained in:
@@ -634,7 +634,7 @@ void MessageDelegateBase::hoverEnterEvent(QHoverEvent *event)
|
|||||||
void MessageDelegateBase::hoverMoveEvent(QHoverEvent *event)
|
void MessageDelegateBase::hoverMoveEvent(QHoverEvent *event)
|
||||||
{
|
{
|
||||||
bool oldHovered = m_hovered;
|
bool oldHovered = m_hovered;
|
||||||
m_hovered = contains(event->pos());
|
m_hovered = contains(event->position());
|
||||||
if (oldHovered != m_hovered) {
|
if (oldHovered != m_hovered) {
|
||||||
Q_EMIT hoveredChanged();
|
Q_EMIT hoveredChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user