summaryrefslogtreecommitdiffstats
path: root/examples/draganddrop/draggabletext/dragwidget.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-08 23:25:26 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-08 23:25:26 (GMT)
commit8e38da7771b40f5585e874a8d12b71225be76503 (patch)
tree8bf874631a934c98872a634bfa04455fc186e8c6 /examples/draganddrop/draggabletext/dragwidget.cpp
parentd80c2837a41903f66159617fbd0b8b69e4a8da75 (diff)
parentf09fc6c958ac8f0307686cd8a59a1adc92771b0c (diff)
downloadQt-8e38da7771b40f5585e874a8d12b71225be76503.zip
Qt-8e38da7771b40f5585e874a8d12b71225be76503.tar.gz
Qt-8e38da7771b40f5585e874a8d12b71225be76503.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Compile fix for embedded. Revised fix for system tray popup activation Fixed draggabletext example. Added new mouse cursor types. Doc: more \since 4.7 Doc: add \since 4.7 to new functions.
Diffstat (limited to 'examples/draganddrop/draggabletext/dragwidget.cpp')
-rw-r--r--examples/draganddrop/draggabletext/dragwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/draganddrop/draggabletext/dragwidget.cpp b/examples/draganddrop/draggabletext/dragwidget.cpp
index 0ada3ac..1fd40be 100644
--- a/examples/draganddrop/draggabletext/dragwidget.cpp
+++ b/examples/draganddrop/draggabletext/dragwidget.cpp
@@ -82,7 +82,7 @@ DragWidget::DragWidget(QWidget *parent)
void DragWidget::dragEnterEvent(QDragEnterEvent *event)
{
if (event->mimeData()->hasText()) {
- if (children().contains(event->source())) {
+ if (event->source() == this) {
event->setDropAction(Qt::MoveAction);
event->accept();
} else {