forked from qt-creator/qt-creator
Help: Drop use of nullptr for default QFlag
Last one. Change-Id: Iaef520ad4a0050544fc46ec3cde10c42675448e4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -111,7 +111,7 @@ void OpenPagesWidget::handleActivated(const QModelIndex &index)
|
|||||||
// work around a bug in itemviews where the delegate wouldn't get the QStyle::State_MouseOver
|
// work around a bug in itemviews where the delegate wouldn't get the QStyle::State_MouseOver
|
||||||
QWidget *vp = viewport();
|
QWidget *vp = viewport();
|
||||||
const QPoint &cursorPos = QCursor::pos();
|
const QPoint &cursorPos = QCursor::pos();
|
||||||
QMouseEvent e(QEvent::MouseMove, vp->mapFromGlobal(cursorPos), cursorPos, Qt::NoButton, nullptr, nullptr);
|
QMouseEvent e(QEvent::MouseMove, vp->mapFromGlobal(cursorPos), cursorPos, Qt::NoButton, {}, {});
|
||||||
QCoreApplication::sendEvent(vp, &e);
|
QCoreApplication::sendEvent(vp, &e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user