From 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:00:12 +0900 Subject: Rename image nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/dnd.doc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/dnd.doc') diff --git a/doc/dnd.doc b/doc/dnd.doc index 27ac5937d..6da6117a5 100644 --- a/doc/dnd.doc +++ b/doc/dnd.doc @@ -60,7 +60,7 @@ QTextEdit widget source code. To start a drag, for example in a \link TQWidget::mouseMoveEvent() mouse motion event\endlink, create an object of the QDragObject subclass appropriate for your media, such as QTextDrag for text and -QImageDrag for images. Then call the drag() method. This is all you +TQImageDrag for images. Then call the drag() method. This is all you need for simple dragging of existing types. For example, to start dragging some text from a widget: @@ -107,7 +107,7 @@ void MyWidget::dragEnterEvent(QDragEnterEvent* event) { event->accept( QTextDrag::canDecode(event) || - QImageDrag::canDecode(event) + TQImageDrag::canDecode(event) ); } @@ -116,7 +116,7 @@ void MyWidget::dropEvent(QDropEvent* event) TQImage image; TQString text; - if ( QImageDrag::decode(event, image) ) { + if ( TQImageDrag::decode(event, image) ) { insertImageAt(image, event->pos()); } else if ( QTextDrag::decode(event, text) ) { insertTextAt(text, event->pos()); @@ -213,9 +213,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, QTextDrag provides support for the "\c{text/plain}" MIME type (ordinary unformatted text), and -the Unicode formats "\c{text/utf16}" and "\c{text/utf8}"; QImageDrag +the Unicode formats "\c{text/utf16}" and "\c{text/utf8}"; TQImageDrag provides for "\c{image/*}", where \c{*} is any image format that -\l QImageIO supports; and the QUriDrag subclass provides +\l TQImageIO supports; and the QUriDrag subclass provides "\c{text/uri-list}", a standard format for transferring a list of filenames (or URLs). @@ -244,13 +244,13 @@ QByteArray encodedData(const char* mimetype) const \endlink members, and provide a set-method to encode the media data and static members canDecode() and decode() to decode incoming data, similar to -\link QImageDrag::canDecode() +\link TQImageDrag::canDecode() bool canDecode(QMimeSource*) const \endlink and -\link QImageDrag::decode() +\link TQImageDrag::decode() QByteArray decode(QMimeSource*) const \endlink -of QImageDrag. +of TQImageDrag. Of course, you can provide drag-only or drop-only support for a media type by omitting some of these methods. -- cgit v1.2.1