class KColorDrag

A drag-and-drop object for colors. More...

Definition#include <kcolordrag.h>
InheritsQStoredDrag (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods


Detailed Description

A drag-and-drop object for colors. The according MIME type is set to application/x-color.

See the Qt drag'n'drop documentation.

 KColorDrag ( QWidget *dragsource = 0, const char *name = 0 )

KColorDrag

Constructs a color drag with a white color.

 KColorDrag ( const QColor &col, QWidget *dragsource = 0, const char *name = 0 )

KColorDrag

Constructs a color drag with the color @p.

 ~KColorDrag ()

~KColorDrag

[virtual]

void  setColor (const QColor &col)

setColor

Sets the color of the drag to col.

bool  canDecode (QMimeSource *e)

canDecode

[static]

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

bool  decode (QMimeSource *e, QColor &col)

decode

[static]

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

KColorDrag*  makeDrag ( const QColor&,QWidget *dragsource)

makeDrag

[static]

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]


Generated by: dfaure on faure on Tue Apr 16 08:49:25 2002, using kdoc 2.0a53.