class KColorDrag

# class KColorDrag | A drag-and-drop object for colors. More...
Definition | `#include <kcolordrag.h>`
Inherits | QStoredDrag (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KColorDrag ( QWidget *dragsource = 0, const char *name = 0 )
- KColorDrag ( const QColor &col, QWidget *dragsource = 0, const char *name = 0 )
- virtual ~KColorDrag ()
- void setColor (const QColor &col)

#### Public Static Methods

- static bool canDecode (QMimeSource *e)
- static bool decode (QMimeSource *e, QColor &col)
- static KColorDrag* makeDrag ( const QColor&,QWidget *dragsource)

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

## 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: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.