• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • 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 dropEvent (QDropEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *pe)

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 109 of file kcolordialog.h.


Constructor & Destructor Documentation

KColorPatch::KColorPatch ( QWidget *  parent  ) 

Definition at line 436 of file kcolordialog.cpp.

KColorPatch::~KColorPatch (  )  [virtual]

Definition at line 443 of file kcolordialog.cpp.


Member Function Documentation

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

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

Definition at line 472 of file kcolordialog.cpp.

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

Definition at line 477 of file kcolordialog.cpp.

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

Definition at line 464 of file kcolordialog.cpp.

void KColorPatch::paintEvent ( QPaintEvent *  pe  )  [protected, virtual]

Definition at line 455 of file kcolordialog.cpp.

void KColorPatch::setColor ( const QColor &  col  ) 

Definition at line 448 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
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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