kdeui
KColorDrag Class Reference
A drag-and-drop object for colors. More...
#include <kcolordrag.h>
Inheritance diagram for KColorDrag:

| Public Member Functions | |
| virtual QByteArray | encodedData (const char *m) const | 
| virtual const char * | format (int i) const | 
| KColorDrag (const QColor &col, QWidget *dragsource=0, const char *name=0) | |
| KColorDrag (QWidget *dragsource=0, const char *name=0) | |
| void | setColor (const QColor &col) | 
| virtual | ~KColorDrag () | 
| Static Public Member Functions | |
| static bool | canDecode (QMimeSource *e) | 
| static bool | decode (QMimeSource *e, QColor &col) | 
| static KColorDrag * | makeDrag (const QColor &, QWidget *dragsource) KDE_DEPRECATED | 
| Protected Member Functions | |
| 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.
Definition at line 36 of file kcolordrag.h.
Constructor & Destructor Documentation
| KColorDrag::KColorDrag | ( | QWidget * | dragsource = 0, | |
| const char * | name = 0 | |||
| ) | 
| virtual KColorDrag::~KColorDrag | ( | ) |  [inline, virtual] | 
Definition at line 48 of file kcolordrag.h.
Member Function Documentation
| bool KColorDrag::canDecode | ( | QMimeSource * | e | ) |  [static] | 
Returns true if the MIME source e contains a color object. 
Definition at line 76 of file kcolordrag.cpp.
| bool KColorDrag::decode | ( | QMimeSource * | e, | |
| QColor & | col | |||
| ) |  [static] | 
Decodes the MIME source e and puts the resulting color into col. 
Definition at line 89 of file kcolordrag.cpp.
| QByteArray KColorDrag::encodedData | ( | const char * | m | ) | const  [virtual] | 
| const char * KColorDrag::format | ( | int | i | ) | const  [virtual] | 
Definition at line 54 of file kcolordrag.cpp.
| KColorDrag * KColorDrag::makeDrag | ( | const QColor & | color, | |
| QWidget * | dragsource | |||
| ) |  [static] | 
- Deprecated:
- This is equivalent with "new KColorDrag(color, dragsource)".
Definition at line 104 of file kcolordrag.cpp.
| void KColorDrag::setColor | ( | const QColor & | col | ) | 
| void KColorDrag::virtual_hook | ( | int | id, | |
| void * | data | |||
| ) |  [protected, virtual] | 
Definition at line 109 of file kcolordrag.cpp.
The documentation for this class was generated from the following files:
 KDE 3.5 API Reference
    KDE 3.5 API Reference