diff options
Diffstat (limited to 'doc/html/dnd.html')
-rw-r--r-- | doc/html/dnd.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/dnd.html b/doc/html/dnd.html index f55293c3f..502f5a55a 100644 --- a/doc/html/dnd.html +++ b/doc/html/dnd.html @@ -62,7 +62,7 @@ sophistication): <tt>qt/examples/iconview/simple_dd</tt>, <tt>qt/examples/dragdr <a href="ntqtextedit.html">TQTextEdit</a> widget source code. <p> <h2> Dragging </h2> -<a name="1"></a><p> To start a drag, for example in a <a href="ntqwidget.html#mouseMoveEvent">mouse motion event</a>, create an object of the <a href="ntqdragobject.html">TQDragObject</a> +<a name="1"></a><p> To start a drag, for example in a <a href="tqwidget.html#mouseMoveEvent">mouse motion event</a>, create an object of the <a href="ntqdragobject.html">TQDragObject</a> subclass appropriate for your media, such as <a href="qtextdrag.html">TQTextDrag</a> for text and <a href="qimagedrag.html">TQImageDrag</a> for images. Then call the drag() method. This is all you need for simple dragging of existing types. @@ -86,19 +86,19 @@ references. <p> <h2> Dropping </h2> <a name="2"></a><p> To be able to receive media dropped on a widget, call -<a href="ntqwidget.html#setAcceptDrops">setAcceptDrops(TRUE)</a> +<a href="tqwidget.html#setAcceptDrops">setAcceptDrops(TRUE)</a> for the widget (e.g. in its constructor), and override the event handler methods -<a href="ntqwidget.html#dragEnterEvent">dragEnterEvent()</a> and -<a href="ntqwidget.html#dropEvent">dropEvent()</a>. +<a href="tqwidget.html#dragEnterEvent">dragEnterEvent()</a> and +<a href="tqwidget.html#dropEvent">dropEvent()</a>. For more sophisticated applications overriding -<a href="ntqwidget.html#dragMoveEvent">dragMoveEvent()</a> and -<a href="ntqwidget.html#dragLeaveEvent">dragLeaveEvent()</a> will also be +<a href="tqwidget.html#dragMoveEvent">dragMoveEvent()</a> and +<a href="tqwidget.html#dragLeaveEvent">dragLeaveEvent()</a> will also be necessary. <p> For example, to accept text and image drops: <pre> MyWidget::MyWidget(...) : - <a href="ntqwidget.html">TQWidget</a>(...) + <a href="tqwidget.html">TQWidget</a>(...) { ... setAcceptDrops(TRUE); @@ -283,7 +283,7 @@ void MyEditor::dropEvent(TQDropEvent* event) <p> Some widgets are more specific than just a "yes" or "no" response when data is dragged onto them. For example, a CAD program might only accept drops of text onto text objects in the view. In these cases, -the <a href="ntqwidget.html#dragMoveEvent">dragMoveEvent()</a> is used and +the <a href="tqwidget.html#dragMoveEvent">dragMoveEvent()</a> is used and an <em>area</em> is given for which the drag is accepted or ignored: <pre> void MyWidget::dragMoveEvent(TQDragMoveEvent* event) |