summaryrefslogtreecommitdiffstats
path: root/doc/dnd.doc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-06-06 13:00:12 +0900
committerMichele Calgaro <[email protected]>2024-06-06 13:00:12 +0900
commit8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (patch)
tree3427fe04e3116ccbd16fa98e57abd5d118f82353 /doc/dnd.doc
parent0881ed5059c46ce73e8241e6260b82b92f6d0e55 (diff)
downloadtqt3-8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde.tar.gz
tqt3-8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde.zip
Rename image nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/dnd.doc')
-rw-r--r--doc/dnd.doc16
1 files changed, 8 insertions, 8 deletions
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.