qt5base-lts/tests/manual/widgets/itemviews
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
..
autoResizePrecision QHeaderView - add parameter to control sizeHint precision 2013-05-13 16:32:50 +02:00
delegate QComboBox - only react on a mouse-release if we had a mousepress 2013-08-21 21:08:08 +02:00
qheaderview QAbstractItemView - allow deselect in single selection mode. 2013-01-02 16:09:14 +01:00
qtreeview QAbstractScrollArea - add SizeAdjustPolicy and viewportSizeHint 2013-04-22 17:56:55 +02:00
qtreewidget QTreeView - allow users to control data in the treestructure 2013-08-07 14:01:23 +02:00
itemviews.pro QTreeView - allow users to control data in the treestructure 2013-08-07 14:01:23 +02:00