summaryrefslogtreecommitdiffstats
path: root/src/widgets/to_be_moved/qtextcontrol.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-07 15:07:44 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-06-07 15:50:54 +0200
commit4386425ce310815076739ea5f15fe4f1218599c8 (patch)
tree55a186c2201c195dceb5f902333bd208f5e01d0b /src/widgets/to_be_moved/qtextcontrol.cpp
parent71304aefd0668f6ba2d41ef84d7f48aaa95db06f (diff)
Implement QDropEvent::source() again
QDropEvent::source() now returns a QObject instead of a widget, matching the implementation in QDrag. Reviewed-by: Samuel
Diffstat (limited to 'src/widgets/to_be_moved/qtextcontrol.cpp')
-rw-r--r--src/widgets/to_be_moved/qtextcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/to_be_moved/qtextcontrol.cpp b/src/widgets/to_be_moved/qtextcontrol.cpp
index ab294b9e0d..aeb2ede106 100644
--- a/src/widgets/to_be_moved/qtextcontrol.cpp
+++ b/src/widgets/to_be_moved/qtextcontrol.cpp
@@ -1885,7 +1885,7 @@ bool QTextControlPrivate::dragMoveEvent(QEvent *e, const QMimeData *mimeData, co
return true; // accept proposed action
}
-bool QTextControlPrivate::dropEvent(const QMimeData *mimeData, const QPointF &pos, Qt::DropAction dropAction, QWidget *source)
+bool QTextControlPrivate::dropEvent(const QMimeData *mimeData, const QPointF &pos, Qt::DropAction dropAction, QObject *source)
{
Q_Q(QTextControl);
dndFeedbackCursor = QTextCursor();