|
|
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: caleb on tcdevel on Tue Jan 28 12:54:10 2003, using kdoc $. |