diff options
| author | jian liang <jianliang79@gmail.com> | 2012-09-25 21:33:55 +0800 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 23:51:30 +0200 |
| commit | 0a7e8350ae0a461d90619382c61e933eb0494be9 (patch) | |
| tree | 44f222e2ac1c733f28e9e201be9af0eb2a70c964 /src/tools/qdoc/cppcodeparser.cpp | |
| parent | f9547c89ea9fd0e6d571db840c5cadab079df607 (diff) | |
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>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions
