summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqiconview.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqiconview.3qt')
-rw-r--r--doc/man/man3/tqiconview.3qt10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/man3/tqiconview.3qt b/doc/man/man3/tqiconview.3qt
index acde42dc..ccd7a428 100644
--- a/doc/man/man3/tqiconview.3qt
+++ b/doc/man/man3/tqiconview.3qt
@@ -247,7 +247,7 @@ Inherits QScrollView.
.BI "void \fBcontextMenuRequested\fR ( QIconViewItem * item, const QPoint & pos )"
.br
.ti -1c
-.BI "void \fBdropped\fR ( QDropEvent * e, const QValueList<QIconDragItem> & lst )"
+.BI "void \fBdropped\fR ( QDropEvent * e, const TQValueList<QIconDragItem> & lst )"
.br
.ti -1c
.BI "void \fBmoved\fR ()"
@@ -431,7 +431,7 @@ The simple approach to dragging items out of the icon view is to subclass QIconV
.PP
In this example we create a QTextDrag object, (derived from QDragObject), containing the item's label and return it as the drag object. We could just as easily have created a QImageDrag from the item's pixmap and returned that instead.
.PP
-QIconViews and their QIconViewItems can also be the targets of drag and drops. To make the QIconView itself able to accept drops connect to the dropped() signal. When a drop occurs this signal will be emitted with a QDragEvent and a QValueList of QIconDragItems. To make a QIconViewItem into a drop target subclass QIconViewItem and reimplement QIconViewItem::acceptDrop() and QIconViewItem::dropped().
+QIconViews and their QIconViewItems can also be the targets of drag and drops. To make the QIconView itself able to accept drops connect to the dropped() signal. When a drop occurs this signal will be emitted with a QDragEvent and a TQValueList of QIconDragItems. To make a QIconViewItem into a drop target subclass QIconViewItem and reimplement QIconViewItem::acceptDrop() and QIconViewItem::dropped().
.PP
.nf
.br
@@ -448,7 +448,7 @@ QIconViews and their QIconViewItems can also be the targets of drag and drops. T
}
.br
.br
- void MyIconViewItem::dropped( QDropEvent *evt, const QValueList<QIconDragItem>& )
+ void MyIconViewItem::dropped( QDropEvent *evt, const TQValueList<QIconDragItem>& )
.br
{
.br
@@ -468,7 +468,7 @@ If you want to use extended drag-and-drop or have drag shapes drawn you must tak
.PP
The first part is starting drags -- you should use a QIconDrag (or a class derived from it) for the drag object. In dragObject() create the drag object, populate it with QIconDragItems and return it. Normally such a drag should offer each selected item's data. So in dragObject() you should iterate over all the items, and create a QIconDragItem for each selected item, and append these items with QIconDrag::append() to the QIconDrag object. You can use QIconDragItem::setData() to set the data of each item that should be dragged. If you want to offer the data in additional mime-types, it's best to use a class derived from QIconDrag, which implements additional encoding and decoding functions.
.PP
-When a drag enters the icon view, there is little to do. Simply connect to the dropped() signal and reimplement QIconViewItem::acceptDrop() and QIconViewItem::dropped(). If you've used a QIconDrag (or a subclass of it) the second argument to the dropped signal contains a QValueList of QIconDragItems -- you can access their data by calling QIconDragItem::data() on each one.
+When a drag enters the icon view, there is little to do. Simply connect to the dropped() signal and reimplement QIconViewItem::acceptDrop() and QIconViewItem::dropped(). If you've used a QIconDrag (or a subclass of it) the second argument to the dropped signal contains a TQValueList of QIconDragItems -- you can access their data by calling QIconDragItem::data() on each one.
.PP
For an example implementation of complex drag-and-drop look at the fileiconview example (qt/examples/fileiconview).
.PP
@@ -588,7 +588,7 @@ The default implementation fills \fIr\fR with the viewport's backgroundBrush().
See also contentsX, contentsY, and drawContents().
.SH "void QIconView::drawRubber ( QPainter * p )\fC [virtual protected]\fR"
Draws the rubber band using the painter \fIp\fR.
-.SH "void QIconView::dropped ( QDropEvent * e, const QValueList<QIconDragItem> & lst )\fC [signal]\fR"
+.SH "void QIconView::dropped ( QDropEvent * e, const TQValueList<QIconDragItem> & lst )\fC [signal]\fR"
This signal is emitted when a drop event occurs in the viewport (but not on any icon) which the icon view itself can't handle.
.PP
\fIe\fR provides all the information about the drop. If the drag object of the drop was a QIconDrag, \fIlst\fR contains the list of the dropped items. You can get the data using QIconDragItem::data() on each item. If the \fIlst\fR is empty, i.e. the drag was not a QIconDrag, you have to decode the data in \fIe\fR and work with that.