aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ionascu <stanislav.ionascu@nokia.com>2010-12-07 11:27:17 +0200
committerStanislav Ionascu <stanislav.ionascu@nokia.com>2010-12-07 11:35:31 +0200
commit691960760a9ee0a14c4a3cba7e9207ef307b7edf (patch)
tree1b6a034a05185e2005a5684ce3ae95559028e495
parente35209c6a31e8c7de01143466ceb458b4cb002cf (diff)
Fixes: NB#209140 - Unnecessary floating label displayed when taping in fast scroll area
RevBy: Armin Berres. Details: The tap event was ignored in case of moving in the action area. So it should be ignored when the area is tapped too, when we don't have any indexes to display.
-rw-r--r--src/views/mlistindexfloatingview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/mlistindexfloatingview.cpp b/src/views/mlistindexfloatingview.cpp
index afdf9f80..91206d18 100644
--- a/src/views/mlistindexfloatingview.cpp
+++ b/src/views/mlistindexfloatingview.cpp
@@ -230,6 +230,12 @@ void MListIndexFloatingView::drawBackground(QPainter *painter, const QStyleOptio
void MListIndexFloatingView::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
Q_D(MListIndexFloatingView);
+
+ if (model()->shortcutIndexes().isEmpty()) {
+ event->ignore();
+ return;
+ }
+
MWidgetView::mousePressEvent(event);
d->scrollToGroupHeader(event->pos().y());