Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KColorDrag Class Reference

#include <kcolordrag.h>

List of all members.

Public Methods

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

Static Public Methods

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


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.

Definition at line 35 of file kcolordrag.h.


Constructor & Destructor Documentation

KColorDrag::KColorDrag QWidget *    dragsource = 0,
const char *    name = 0
 

Constructs a color drag with a white color.

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

Constructs a color drag with the color @p.


Member Function Documentation

bool KColorDrag::canDecode QMimeSource *    e [static]
 

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

bool KColorDrag::decode QMimeSource *    e,
QColor &    col
[static]
 

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

KColorDrag* KColorDrag::makeDrag const QColor &   ,
QWidget *    dragsource
[static]
 

Deprecated:
This is equivalent with "new KColorDrag(color, dragsource)".

void KColorDrag::setColor const QColor &    col
 

Sets the color of the drag to col.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:06 2003 for kdelibs by doxygen1.2.18