qt5base-lts/tests/manual/widgets/itemviews/delegate
Thorbjørn Lund Martsum 7523bbb0c0 QComboBox - only react on a mouse-release if we had a mousepress
In delegates we get into trouble with calling showPopup in
setEditorData (edit by double click) - and that is not reasonable.
The user has requested edit - and therefore it is natural to save
a click for the user and show the popup at once.

However that fails since we have the mouse down and as soon as we
release the mouse we will call hidePopup.

This patch ensures that the mouseReleaseEvent, that caused the
problem is only considered if we have had a mousePressEvent.

Change-Id: Ibe031fcb9ad2158f6969e41127bbb5f651b9cae6
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2013-08-21 21:08:08 +02:00
..
delegate.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
example.cpp QComboBox - only react on a mouse-release if we had a mousepress 2013-08-21 21:08:08 +02:00