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

kdeui

KColorPatch Class Reference

A color displayer. More...

#include <kcolordialog.h>

Inheritance diagram for KColorPatch:

Inheritance graph
[legend]

List of all members.


Signals

void colorChanged (const QColor &)

Public Member Functions

 KColorPatch (QWidget *parent)
void setColor (const QColor &col)
virtual ~KColorPatch ()

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *)
virtual void drawContents (QPainter *painter)
virtual void dropEvent (QDropEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void virtual_hook (int id, void *data)

Detailed Description

A color displayer.

The KColorPatch widget is a (usually small) widget showing a selected color e. g. in the KColorDialog. It automatically handles drag and drop from and on the widget.

Definition at line 311 of file kcolordialog.h.


Constructor & Destructor Documentation

KColorPatch::KColorPatch ( QWidget *  parent  ) 

Definition at line 494 of file kcolordialog.cpp.

KColorPatch::~KColorPatch (  )  [virtual]

Definition at line 501 of file kcolordialog.cpp.


Member Function Documentation

void KColorPatch::colorChanged ( const QColor &   )  [signal]

void KColorPatch::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

Definition at line 538 of file kcolordialog.cpp.

void KColorPatch::drawContents ( QPainter *  painter  )  [protected, virtual]

Reimplemented from QFrame.

Definition at line 523 of file kcolordialog.cpp.

void KColorPatch::dropEvent ( QDropEvent *  event  )  [protected, virtual]

Definition at line 543 of file kcolordialog.cpp.

void KColorPatch::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 530 of file kcolordialog.cpp.

void KColorPatch::setColor ( const QColor &  col  ) 

Definition at line 507 of file kcolordialog.cpp.

void KColorPatch::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 1608 of file kcolordialog.cpp.


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

kdeui

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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