• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Protected Member Functions | Properties

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)
virtual ~KColorPatch ()
QColor color () const
void setColor (const QColor &col)

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *)
virtual void dropEvent (QDropEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *pe)

Properties

QColor color

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.

kcolorpatch.png

KDE Color Patch

Definition at line 110 of file kcolordialog.h.


Constructor & Destructor Documentation

KColorPatch::KColorPatch ( QWidget *  parent)

Definition at line 468 of file kcolordialog.cpp.

KColorPatch::~KColorPatch ( ) [virtual]

Definition at line 475 of file kcolordialog.cpp.


Member Function Documentation

QColor KColorPatch::color ( ) const

Get the currently displayed color.

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

This signal is emitted whenever the current color changes due to a drop event.

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

Definition at line 508 of file kcolordialog.cpp.

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

Definition at line 513 of file kcolordialog.cpp.

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

Definition at line 500 of file kcolordialog.cpp.

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

Definition at line 492 of file kcolordialog.cpp.

void KColorPatch::setColor ( const QColor &  col)

Set the color to display and update the display.

Parameters:
colcolor to display

Definition at line 485 of file kcolordialog.cpp.


Property Documentation

QColor KColorPatch::color [read, write]

Definition at line 113 of file kcolordialog.h.


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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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