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

KDEUI

Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
KColorPatch Class Reference

#include <kcolordialog.h>

Inheritance diagram for KColorPatch:
Inheritance graph
[legend]

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

Constructor & Destructor Documentation

KColorPatch::KColorPatch ( QWidget *  parent)

Definition at line 478 of file kcolordialog.cpp.

KColorPatch::~KColorPatch ( )
virtual

Definition at line 485 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)
protectedvirtual

Definition at line 518 of file kcolordialog.cpp.

void KColorPatch::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 523 of file kcolordialog.cpp.

void KColorPatch::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 510 of file kcolordialog.cpp.

void KColorPatch::paintEvent ( QPaintEvent *  pe)
protectedvirtual

Definition at line 502 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 495 of file kcolordialog.cpp.

Property Documentation

QColor KColorPatch::color
readwrite

Definition at line 119 of file kcolordialog.h.


The documentation for this class was generated from the following files:
  • kcolordialog.h
  • kcolordialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal