1QColorDrag(3qt)                                                QColorDrag(3qt)
2
3
4

NAME

6       QColorDrag - Drag and drop object for transferring colors
7

SYNOPSIS

9       #include <qdragobject.h>
10
11       Inherits QStoredDrag.
12
13   Public Members
14       QColorDrag ( const QColor & col, QWidget * dragsource = 0, const char *
15           name = 0 )
16       QColorDrag ( QWidget * dragsource = 0, const char * name = 0 )
17       void setColor ( const QColor & col )
18
19   Static Public Members
20       bool canDecode ( QMimeSource * e )
21       bool decode ( QMimeSource * e, QColor & col )
22

DESCRIPTION

24       The QColorDrag class provides a drag and drop object for transferring
25       colors.
26
27       This class provides a drag object which can be used to transfer data
28       about colors for drag and drop and in the clipboard. For example, it is
29       used in QColorDialog.
30
31       The color is set in the constructor but can be changed with setColor().
32
33       For more information about drag and drop, see the QDragObject class and
34       the drag and drop documentation.
35
36       See also Drag And Drop Classes.
37

MEMBER FUNCTION DOCUMENTATION

QColorDrag::QColorDrag ( const QColor & col, QWidget * dragsource = 0, const

40       char * name = 0 )
41       Constructs a color drag object with the color col. Passes dragsource
42       and name to the QStoredDrag constructor.
43

QColorDrag::QColorDrag ( QWidget * dragsource = 0, const char * name = 0 )

45       Constructs a color drag object with a white color. Passes dragsource
46       and name to the QStoredDrag constructor.
47

bool QColorDrag::canDecode ( QMimeSource * e ) [static]

49       Returns TRUE if the color drag object can decode the mime source e;
50       otherwise returns FALSE.
51

bool QColorDrag::decode ( QMimeSource * e, QColor & col ) [static]

53       Decodes the mime source e and sets the decoded values to col.
54

void QColorDrag::setColor ( const QColor & col )

56       Sets the color of the color drag to col.
57
58

SEE ALSO

60       http://doc.trolltech.com/qcolordrag.html
61       http://www.trolltech.com/faq/tech.html
62
64       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
65       license file included in the distribution for a complete license
66       statement.
67

AUTHOR

69       Generated automatically from the source code.
70

BUGS

72       If you find a bug in Qt, please report it as described in
73       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
74       help you. Thank you.
75
76       The definitive Qt documentation is provided in HTML format; it is
77       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
78       web browser. This man page is provided as a convenience for those users
79       who prefer man pages, although this format is not officially supported
80       by Trolltech.
81
82       If you find errors in this manual page, please report them to qt-
83       bugs@trolltech.com.  Please include the name of the manual page
84       (qcolordrag.3qt) and the Qt version (3.3.8).
85
86
87
88Trolltech AS                    2 February 2007                QColorDrag(3qt)
Impressum