org.kde.koala
public class KMultipleDrag extends QDragObject
KMultipleDrag drag = new KMultipleDrag( parentWidget ); drag.addDragObject( new QImageDrag( someQImage, 0 ) ); drag.addDragObject( new KURLDrag( someKURL, 0 ) ); drag.drag();Note that the drag objects added to the multiple drag become owned by it. For that reason their parent should be 0.
UNKNOWN: This class makes it easy for applications to provide a drag object (for drag-n-drop or for clipboard) that has several representations of the same data, under different formats.
Constructor Summary | |
---|---|
protected | KMultipleDrag(Class dummy) |
KMultipleDrag(QWidget dragSource, String name)
Create a new KMultipleDrag object. | |
KMultipleDrag(QWidget dragSource) | |
KMultipleDrag() |
Method Summary | |
---|---|
void | addDragObject(QDragObject dragObject)
Call this to add each underlying drag object to the multiple drag object.
|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
byte[] | encodedData(String mime)
Returns the data of a drag object with that supports the given
mime type. |
protected void | finalize() Deletes the wrapped C++ instance |
String | format(int i)
Returns the i 'th supported format, or 0. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
Parameters: dragSource the parent object which is the source of the data, 0 for a parent-less object name the name of the object, can be 0
UNKNOWN: Create a new KMultipleDrag object.
Parameters: dragObject the drag object to add. Should have no parent object.
UNKNOWN: Call this to add each underlying drag object to the multiple drag object.
Parameters: mime the mime type to search
Returns: the data, or a null byte array if not found
UNKNOWN: Returns the data of a drag object with that supports the given mime type.
i
'th supported format, or 0.Parameters: i the number of the format to check
Returns: the format with the number i
, or 0 otherwise
UNKNOWN: Returns the i
'th supported format, or 0.