Call this function to indicate whether the event provided data which your widget processed. Set \fIy\fR to TRUE (the default) if your widget could process the data, otherwise set \fIy\fR to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as TQTextDrag::decode(), or your own subclasses.
.SH "void QDropEvent::acceptAction ( bool y = TRUE )"
Call this to indicate that the action described by action() is accepted (i.e. if \fIy\fR is TRUE, which is the default), not merely the default copy action. If you call acceptAction(TRUE), there is no need to also call accept(TRUE).
.PP
Examples:
.)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp.
.SH "Action QDropEvent::action () const"
Returns the Action which the target is requesting to be performed with the data. If your application understands the action and can process the supplied data, call acceptAction(); if your application can process the supplied data but can only perform the Copy action, call accept().
.PP
Examples:
.)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp.
.SH "QByteArray QDropEvent::data ( const char * f ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
Returns a byte array containing the drag's data, in \fIformat\fR.
.PP
data() normally needs to get the data from the drag source, which is potentially very slow, so it's advisable to call this function only if you're sure that you will need the data in \fIformat\fR.
.PP
The resulting data will have a size of 0 if the format was not available.
.PP
See also format() and QByteArray::size().
.PP
Reimplemented from QMimeSource.
.SH "const char * QDropEvent::format ( int n = 0 ) const\fC [virtual]\fR"
Returns a string describing one of the available data types for this drag. Common examples are "text/plain" and "image/gif". If \fIn\fR is less than zero or greater than the number of available data types, format() returns 0.
.PP
This function is provided mainly for debugging. Most drop targets will use provides().
.PP
See also data() and provides().
.PP
Example: iconview/main.cpp.
.PP
Reimplemented from QMimeSource.
.SH "void QDropEvent::ignore ()"
The opposite of accept(), i.e. you have ignored the drop event.
.PP
Example: fileiconview/qfileiconview.cpp.
.SH "bool QDropEvent::isAccepted () const"
Returns TRUE if the drop target accepts the event; otherwise returns FALSE.
.SH "bool QDropEvent::isActionAccepted () const"
Returns TRUE if the drop action was accepted by the drop site; otherwise returns FALSE.
Returns TRUE if this event provides format \fImimeType\fR; otherwise returns FALSE.
.PP
See also data().
.PP
Example: fileiconview/qfileiconview.cpp.
.PP
Reimplemented from QMimeSource.
.SH "void QDropEvent::setAction ( Action a )"
Sets the action to \fIa\fR. This is used internally, you should not need to call this in your code: the \fIsource\fR decides the action, not the target.
Sets the drop to happen at point \fInp\fR. You do not normally need to use this as it will be set internally before your widget receives the drop event.
If the source of the drag operation is a widget in this application, this function returns that source, otherwise it returns 0. The source of the operation is the first parameter to drag object subclasses.
.PP
This is useful if your widget needs special behavior when dragging to itself, etc.
.PP
See QDragObject::QDragObject() and subclasses.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qdropevent.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in