org.kde.koala

Class KColorDrag

public class KColorDrag extends QStoredDrag

A drag-and-drop object for colors. The according MIME type is set to application/x-color. See the Qt drag'n'drop documentation.

UNKNOWN: A drag-and-drop object for colors.

Constructor Summary
protected KColorDrag(Class dummy)
KColorDrag(QWidget dragsource, String name)
Constructs a color drag with a white color.
KColorDrag(QWidget dragsource)
KColorDrag()
KColorDrag(QColor col, QWidget dragsource, String name)
Constructs a color drag with the color col.
KColorDrag(QColor col, QWidget dragsource)
KColorDrag(QColor col)
Method Summary
static booleancanDecode(QMimeSourceInterface e)
Returns true if the MIME source e contains a color object.
StringclassName()
static booleandecode(QMimeSourceInterface e, QColor col)
Decodes the MIME source e and puts the resulting color into col.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
byte[]encodedData(String m)
protected voidfinalize()
Deletes the wrapped C++ instance
Stringformat(int i)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetColor(QColor col)
Sets the color of the drag to col.

Constructor Detail

KColorDrag

protected KColorDrag(Class dummy)

KColorDrag

public KColorDrag(QWidget dragsource, String name)
Constructs a color drag with a white color.

UNKNOWN: Constructs a color drag with a white color.

KColorDrag

public KColorDrag(QWidget dragsource)

KColorDrag

public KColorDrag()

KColorDrag

public KColorDrag(QColor col, QWidget dragsource, String name)
Constructs a color drag with the color col.

UNKNOWN: Constructs a color drag with the color col.

KColorDrag

public KColorDrag(QColor col, QWidget dragsource)

KColorDrag

public KColorDrag(QColor col)

Method Detail

canDecode

public static boolean canDecode(QMimeSourceInterface e)
Returns true if the MIME source e contains a color object.

UNKNOWN: Returns true if the MIME source e contains a color object.

className

public String className()

decode

public static boolean decode(QMimeSourceInterface e, QColor col)
Decodes the MIME source e and puts the resulting color into col.

UNKNOWN: Decodes the MIME source e and puts the resulting color into col.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

encodedData

public byte[] encodedData(String m)

finalize

protected void finalize()
Deletes the wrapped C++ instance

format

public String format(int i)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

setColor

public void setColor(QColor col)
Sets the color of the drag to col.

UNKNOWN: Sets the color of the drag to col.