qt5base-lts/tests/auto/widgets
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
..
dialogs tst_QDialog: fix Q_OS_WINCE & QT_NO_SIZEGRIP usage 2012-09-27 06:07:11 +02:00
effects Auto tests: remove PlatformQuirks::isAutoMaximizing() 2012-09-26 10:08:59 +02:00
graphicsview Remove CDE and Motif styles from qtbase 2012-09-27 15:16:16 +02:00
itemviews Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
kernel Fix drag and drop with native widgets 2012-09-27 23:51:30 +02:00
styles Remove CDE and Motif styles from qtbase 2012-09-27 15:16:16 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
widgets tst_QLabel: remove QSKIP, wrap Q_OS_MAC 2012-09-27 21:13:52 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00