QColorDrag Class Reference
The QColorDrag class provides a drag-and-drop object for
transferring colors.
More...
#include <qdragobject.h>
Inherits QStoredDrag.
List of all member functions.
Public Members
QColorDrag ( const QColor & col, QWidget * dragsource = 0, const char * name = 0 )
QColorDrag ( QWidget * dragsource = 0, const char * name = 0 )
Static Public Members
bool
decode ( QMimeSource * e, QColor & col )
Detailed Description
The QColorDrag class provides a drag-and-drop object for
transferring colors.
This class provides a drag object which can be used to transfer data
about colors for drag-and-drop and over the clipboard. For example, it
is used in the QColorDialog.
The color is set in the constructor but can be changed with
setColor().
For detailed information about drag-and-drop, see the QDragObject class.
Member Function Documentation
QColorDrag::QColorDrag ( const QColor & col, QWidget * dragsource = 0, const char * name = 0 )
Constructs a color drag object with the color col.
QColorDrag::QColorDrag ( QWidget * dragsource = 0, const char * name = 0 )
Constructs a color drag object with a while color
bool QColorDrag::canDecode ( QMimeSource * e ) [static]
Returns TRUE if the color drag object can decode the
mime source e.
bool QColorDrag::decode ( QMimeSource * e, QColor & col ) [static]
Decodes the mime source e and sets the decoded values to col.
void QColorDrag::setColor ( const QColor & col )
Sets the color of the color drag to col.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta1-beta1
|