summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qabstractitemview.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-01-17 13:53:19 +0100
committerAndy Shaw <andy.shaw@qt.io>2018-01-22 09:50:03 +0000
commitefec288f58dc18f6a571bfedf9d19e3fbf12a18f (patch)
tree59ce0f85f5131c4285228d2ddc03a0784dc01a2a /src/widgets/itemviews/qabstractitemview.h
parent6f9c5c85ca37e1fd1203317d4ed31ac33c0f1124 (diff)
itemviews: When an index widget gets focus, update the current index
By ensuring that the current index follows the focus of an index widget, we can ensure that moving the cursor will happen in the way that is expected from the focused widget. Task-number: QTBUG-27793 Change-Id: Ia36891a94ce41c7d12fba678de23a6f3b69374ae Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview.h')
-rw-r--r--src/widgets/itemviews/qabstractitemview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.h b/src/widgets/itemviews/qabstractitemview.h
index 96745a84ea..8a138bdb67 100644
--- a/src/widgets/itemviews/qabstractitemview.h
+++ b/src/widgets/itemviews/qabstractitemview.h
@@ -346,6 +346,7 @@ protected:
void resizeEvent(QResizeEvent *event) override;
void timerEvent(QTimerEvent *event) override;
void inputMethodEvent(QInputMethodEvent *event) override;
+ bool eventFilter(QObject *object, QEvent *event) override;
#ifndef QT_NO_DRAGANDDROP
enum DropIndicatorPosition { OnItem, AboveItem, BelowItem, OnViewport };