diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:00:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:00:12 +0900 |
commit | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (patch) | |
tree | 3427fe04e3116ccbd16fa98e57abd5d118f82353 /doc/html/dnd.html | |
parent | 0881ed5059c46ce73e8241e6260b82b92f6d0e55 (diff) | |
download | tqt3-8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde.tar.gz tqt3-8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde.zip |
Rename image nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/dnd.html')
-rw-r--r-- | doc/html/dnd.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/dnd.html b/doc/html/dnd.html index 502f5a55a..5614b21a2 100644 --- a/doc/html/dnd.html +++ b/doc/html/dnd.html @@ -64,7 +64,7 @@ sophistication): <tt>qt/examples/iconview/simple_dd</tt>, <tt>qt/examples/dragdr </h2> <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 +<a href="tqimagedrag.html">TQImageDrag</a> for images. Then call the drag() method. This is all you need for simple dragging of existing types. <p> For example, to start dragging some text from a widget: <pre> @@ -108,16 +108,16 @@ void MyWidget::dragEnterEvent(TQDragEnterEvent* event) { event->accept( TQTextDrag::<a href="qtextdrag.html#canDecode">canDecode</a>(event) || - TQImageDrag::<a href="qimagedrag.html#canDecode">canDecode</a>(event) + TQImageDrag::<a href="tqimagedrag.html#canDecode">canDecode</a>(event) ); } void MyWidget::dropEvent(TQDropEvent* event) { - <a href="ntqimage.html">TQImage</a> image; + <a href="tqimage.html">TQImage</a> image; <a href="ntqstring.html">TQString</a> text; - if ( TQImageDrag::<a href="qimagedrag.html#decode">decode</a>(event, image) ) { + if ( TQImageDrag::<a href="tqimagedrag.html#decode">decode</a>(event, image) ) { insertImageAt(image, event->pos()); } else if ( TQTextDrag::<a href="qtextdrag.html#decode">decode</a>(event, text) ) { insertTextAt(text, event->pos()); @@ -212,9 +212,9 @@ source provides a list of MIME types that it can produce (ordered from most appropriate to least appropriate), and the drop target chooses which of those it can accept. For example, <a href="qtextdrag.html">TQTextDrag</a> provides support for the "<tt>text/plain</tt>" MIME type (ordinary unformatted text), and -the Unicode formats "<tt>text/utf16</tt>" and "<tt>text/utf8</tt>"; <a href="qimagedrag.html">TQImageDrag</a> +the Unicode formats "<tt>text/utf16</tt>" and "<tt>text/utf8</tt>"; <a href="tqimagedrag.html">TQImageDrag</a> provides for "<tt>image/*</tt>", where <tt>*</tt> is any image format that -<a href="qimageio.html">TQImageIO</a> supports; and the <a href="quridrag.html">TQUriDrag</a> subclass provides +<a href="tqimageio.html">TQImageIO</a> supports; and the <a href="quridrag.html">TQUriDrag</a> subclass provides "<tt>text/uri-list</tt>", a standard format for transferring a list of filenames (or URLs). <p> To implement drag-and-drop of some type of information for which there @@ -234,9 +234,9 @@ is sufficient. <a href="qmimesource.html#encodedData">TQByteArray encodedData(const char* mimetype) const</a> members, and provide a set-method to encode the media data and static members canDecode() and decode() to decode incoming data, similar to -<a href="qimagedrag.html#canDecode">bool canDecode(TQMimeSource*) const</a> and -<a href="qimagedrag.html#decode">TQByteArray decode(TQMimeSource*) const</a> -of <a href="qimagedrag.html">TQImageDrag</a>. +<a href="tqimagedrag.html#canDecode">bool canDecode(TQMimeSource*) const</a> and +<a href="tqimagedrag.html#decode">TQByteArray decode(TQMimeSource*) const</a> +of <a href="tqimagedrag.html">TQImageDrag</a>. Of course, you can provide drag-only or drop-only support for a media type by omitting some of these methods. <p> Subclasses of TQStoredDrag provide a set-method to encode the media |