Developer documentation
Version 3.0.3-105-gd3941f44
QColorButton Class Reference

#include "gui/color_button.h"

Inheritance diagram for QColorButton:

Signals

void changed (const QColor &newColor)
 

Public Member Functions

 QColorButton (QWidget *parent=NULL, const char *name=NULL)
 
 QColorButton (const QColor &c, QWidget *parent=NULL, const char *name=NULL)
 
virtual ~QColorButton ()
 
QColor color () const
 
void setColor (const QColor &c)
 
QSize sizeHint () const
 

Protected Slots

void chooseColor ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *p)
 

Properties

NOMEMALIGN QColor color
 

Detailed Description

Definition at line 22 of file color_button.h.

Constructor & Destructor Documentation

◆ QColorButton() [1/2]

QColorButton::QColorButton ( QWidget *  parent = NULL,
const char *  name = NULL 
)

◆ QColorButton() [2/2]

QColorButton::QColorButton ( const QColor &  c,
QWidget *  parent = NULL,
const char *  name = NULL 
)

◆ ~QColorButton()

virtual QColorButton::~QColorButton ( )
inlinevirtual

Definition at line 30 of file color_button.h.

Member Function Documentation

◆ changed

void QColorButton::changed ( const QColor &  newColor)
signal

◆ chooseColor

void QColorButton::chooseColor ( )
protectedslot

◆ color()

QColor QColorButton::color ( ) const
inline

Definition at line 32 of file color_button.h.

◆ paintEvent()

virtual void QColorButton::paintEvent ( QPaintEvent *  p)
protectedvirtual

◆ setColor()

void QColorButton::setColor ( const QColor &  c)

◆ sizeHint()

QSize QColorButton::sizeHint ( ) const

Property Documentation

◆ color

NOMEMALIGN QColor QColorButton::color
readwrite

Definition at line 23 of file color_button.h.


The documentation for this class was generated from the following file: