summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-09 12:20:54 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-09 12:21:25 (GMT)
commit43760604b1e08792938449885a938a641669c11d (patch)
tree52926952947908d3e98b7c74c062424da960bf24
parent8b5f25ef98d29859e14d992ed90d976e64dc6382 (diff)
downloadQt-43760604b1e08792938449885a938a641669c11d.zip
Qt-43760604b1e08792938449885a938a641669c11d.tar.gz
Qt-43760604b1e08792938449885a938a641669c11d.tar.bz2
Added some links to the appropriate functions to the doc.
Reviewed-by: trustme
-rw-r--r--doc/src/dnd.qdoc13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/src/dnd.qdoc b/doc/src/dnd.qdoc
index b5039f6..5ede20c 100644
--- a/doc/src/dnd.qdoc
+++ b/doc/src/dnd.qdoc
@@ -141,15 +141,17 @@
types of data that the widget accepts.
You must reimplement this function if you want to receive either
QDragMoveEvent or QDropEvent in your reimplementations of
- \l{QWidget::dragMoveEvent()}{dragMoveEvent()} and dropEvent().
+ \l{QWidget::dragMoveEvent()}{dragMoveEvent()} and
+ \l{QWidget::dropEvent()}{dropEvent()}.
- The following code shows how dragEnterEvent() can be reimplemented to
+ The following code shows how \l{QWidget::dragEnterEvent()}{dragEnterEvent()}
+ can be reimplemented to
tell the drag and drop system that we can only handle plain text:
\snippet doc/src/snippets/dropevents/window.cpp 3
- The dropEvent() is used to unpack dropped data and handle it in way that
- is suitable for your application.
+ The \l{QWidget::dropEvent()}{dropEvent()} is used to unpack dropped data
+ and handle it in way that is suitable for your application.
In the following code, the text supplied in the event is passed to a
QTextBrowser and a QComboBox is filled with the list of MIME types that
@@ -159,7 +161,8 @@
In this case, we accept the proposed action without checking what it is.
In a real world application, it may be necessary to return from the
- dropEvent() function without accepting the proposed action or handling
+ \l{QWidget::dropEvent()}{dropEvent()} function without accepting the
+ proposed action or handling
the data if the action is not relevant. For example, we may choose to
ignore Qt::LinkAction actions if we do not support
links to external sources in our application.