X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/b9c27913143d75bad1f16b7a749f33464bce3e00..148282e2d856b47ceb191eeef4c834118c8cdffd:/src/tooltipmanager.cpp diff --git a/src/tooltipmanager.cpp b/src/tooltipmanager.cpp index e287d85b7..eb1e52ec1 100644 --- a/src/tooltipmanager.cpp +++ b/src/tooltipmanager.cpp @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -81,6 +82,14 @@ ToolTipManager::ToolTipManager(QAbstractItemView* parent, connect(m_waitOnPreviewTimer, SIGNAL(timeout()), this, SLOT(prepareToolTip())); + // When the mousewheel is used, the items don't get a hovered indication + // (Qt-issue #200665). To assure that the tooltip still gets hidden, + // the scrollbars are observed. + connect(parent->horizontalScrollBar(), SIGNAL(valueChanged(int)), + this, SLOT(hideTip())); + connect(parent->verticalScrollBar(), SIGNAL(valueChanged(int)), + this, SLOT(hideTip())); + m_view->viewport()->installEventFilter(this); }