• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdeui

KColorDrag Class Reference

#include <kcolordrag.h>

Inheritance diagram for KColorDrag:

QStoredDrag

List of all members.


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.


Public Member Functions

 KColorDrag (QWidget *dragsource=0, const char *name=0)
 KColorDrag (const QColor &col, QWidget *dragsource=0, const char *name=0)
virtual const char * format (int i) const
virtual QByteArray encodedData (const char *m) const
void setColor (const QColor &col)

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)

Constructor & Destructor Documentation

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

Constructs a color drag with a white color.

Definition at line 33 of file kcolordrag.cpp.

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

Constructs a color drag with the color col.

Definition at line 26 of file kcolordrag.cpp.


Member Function Documentation

void KColorDrag::setColor ( const QColor &  col  ) 

Sets the color of the drag to col.

Definition at line 40 of file kcolordrag.cpp.

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.

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.


The documentation for this class was generated from the following files:
  • kcolordrag.h
  • kcolordrag.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal