summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-29 13:37:33 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-10-01 15:15:44 (GMT)
commit984fe9ebfc6d9582d21bcf1d09cb0578fd163f54 (patch)
tree3078b5819cf82873d12ff364797c1ad8a2048d6a /src
parentda53926fe3e910941d0112072fcbeba565b967fe (diff)
downloadQt-984fe9ebfc6d9582d21bcf1d09cb0578fd163f54.zip
Qt-984fe9ebfc6d9582d21bcf1d09cb0578fd163f54.tar.gz
Qt-984fe9ebfc6d9582d21bcf1d09cb0578fd163f54.tar.bz2
Fixed Designer property editor selection bug.
When the editor had been created inside the QtPropertyEditorView (inheriting QTreeWidget), the subsequent show sent a synthetic mouse move event down to the QLineEdit, and a new selection was made on the text because the mouse button was marked as pressed in the event. QApplicationPrivate::sendSyntheticEnterLeave() now sends a mouse move event without any button pressed. Auto-test included in tst_QWidget. Task-number: QTBUG-4055 Task-number: 253159 Task-number: QT-659 Task-number: 245398 Reviewed-by: bnilsen
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index 3715059..832d829 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -3002,7 +3002,7 @@ void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget)
qt_button_down = 0;
// Send enter/leave events followed by a mouse move on the entered widget.
- QMouseEvent e(QEvent::MouseMove, pos, globalPos, Qt::NoButton, mouse_buttons, modifier_buttons);
+ QMouseEvent e(QEvent::MouseMove, pos, globalPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
sendMouseEvent(widgetUnderCursor, &e, widgetUnderCursor, tlw, &qt_button_down, qt_last_mouse_receiver);
#endif // QT_NO_CURSOR
}