Skip to content
Snippets Groups Projects
Commit 5e0b7441 authored by wongk's avatar wongk Committed by Leandro Melo
Browse files

Allow user to click on arrows on the function hint proposal.


Also added the ability to use the mouse wheel to scroll through the
overloads.

Task-Number: QTCREATORBUG-5540
Change-Id: I8854bdcdf0b1456afdbc7ea2e27cd3ff7b7fcf41
Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
parent 60e39242
No related branches found
No related tags found
No related merge requests found
...@@ -233,8 +233,15 @@ bool FunctionHintProposalWidget::eventFilter(QObject *obj, QEvent *e) ...@@ -233,8 +233,15 @@ bool FunctionHintProposalWidget::eventFilter(QObject *obj, QEvent *e)
case QEvent::MouseButtonDblClick: case QEvent::MouseButtonDblClick:
case QEvent::Wheel: { case QEvent::Wheel: {
QWidget *widget = qobject_cast<QWidget *>(obj); QWidget *widget = qobject_cast<QWidget *>(obj);
if (! (widget == this || isAncestorOf(widget))) { if (!d->m_popupFrame->isAncestorOf(widget)) {
abort(); abort();
} else if (e->type() == QEvent::Wheel) {
if (static_cast<QWheelEvent*>(e)->delta() > 0) {
previousPage();
} else {
nextPage();
}
return true;
} }
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment