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

kalarm/lib

Public Member Functions | Protected Member Functions | List of all members
ColourButton Class Reference

#include <colourbutton.h>

Inheritance diagram for ColourButton:
Inheritance graph
[legend]

Public Member Functions

 ColourButton (QWidget *parent=0)
 
QColor colour () const
 
bool isReadOnly () const
 
void setColour (const QColor &c)
 
virtual void setReadOnly (bool readOnly)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *)
 
virtual void keyReleaseEvent (QKeyEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 

Detailed Description

A colour selection button with read-only option.

The ColourButton class is a KColorButton with a read-only option.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

Author
David Jarvie djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 37 of file colourbutton.h.

Constructor & Destructor Documentation

ColourButton::ColourButton ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentThe parent object of this widget.

Definition at line 28 of file colourbutton.cpp.

Member Function Documentation

QColor ColourButton::colour ( ) const
inline

Returns the selected colour.

Definition at line 46 of file colourbutton.h.

bool ColourButton::isReadOnly ( ) const
inline

Returns true if the widget is read only.

Definition at line 50 of file colourbutton.h.

void ColourButton::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 62 of file colourbutton.cpp.

void ColourButton::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 68 of file colourbutton.cpp.

void ColourButton::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 56 of file colourbutton.cpp.

void ColourButton::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 39 of file colourbutton.cpp.

void ColourButton::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 50 of file colourbutton.cpp.

void ColourButton::setColour ( const QColor &  c)
inline

Sets the selected colour to c.

Definition at line 48 of file colourbutton.h.

void ColourButton::setReadOnly ( bool  readOnly)
virtual

Sets whether the button can be changed by the user.

Parameters
readOnlyTrue to set the widget read-only, false to set it read-write.

Definition at line 34 of file colourbutton.cpp.


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

KDE's Doxygen guidelines are available online.

kalarm/lib

Skip menu "kalarm/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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