qt6-bb10/tests/auto/widgets/kernel
jian liang 0a7e8350ae Fix drag and drop with native widgets
Task-number: QTBUG-27336

Don't check 'widget != m_widget' in
QWidgetWindow::handleDragEnterMoveEvent() since the current window's
parent widget may be the actual drop target. I replace it with a check
'!widget->isWindow()' to prevent we pass through a top level window.
I also change 'widget->mapFrom(m_widget, event->pos())' to
'widget->mapFromGlobal(m_widget->mapToGlobal(event->pos()))' since m_widget
may not be widget's parent.

Change-Id: Ia4f10f85ccdf1e27223ddc51afabd98b5d16f2fb
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2012-09-27 23:51:30 +02:00
..
qaction Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qactiongroup Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qapplication Remove CDE and Motif styles from qtbase 2012-09-27 15:16:16 +02:00
qboxlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdesktopwidget Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qformlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgridlayout Remove CDE and Motif styles from qtbase 2012-09-27 15:16:16 +02:00
qlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qshortcut Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsizepolicy Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstackedlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtooltip Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwidget Test: Remove QSKIP from tst_QWidget::raise 2012-09-25 18:36:32 +02:00
qwidget_window Fix drag and drop with native widgets 2012-09-27 23:51:30 +02:00
qwidgetaction Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwidgetmetatype Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwidgetsvariant Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel.pro Store the QMetaObject with the QMetaType. 2012-07-01 15:07:10 +02:00