OpenHantek
Public Slots | Signals | Public Member Functions
ColorBox Class Reference

A widget for the selection of a color. More...

#include <colorbox.h>

Inheritance diagram for ColorBox:

Public Slots

void setColor (QColor color)
 Sets the color. More...
 
void waitForColor ()
 Wait for the color dialog and apply chosen color.
 

Signals

void colorChanged (QColor color)
 The color has been changed.
 

Public Member Functions

 ColorBox (QColor color, QWidget *parent=0)
 Initializes the widget. More...
 
 ~ColorBox ()
 Cleans up the widget.
 
const QColor getColor ()
 Get the current color. More...
 

Detailed Description

A widget for the selection of a color.

Constructor & Destructor Documentation

◆ ColorBox()

ColorBox::ColorBox ( QColor  color,
QWidget *  parent = 0 
)

Initializes the widget.

Parameters
colorInitial color value.
parentThe parent widget.

Member Function Documentation

◆ getColor()

const QColor ColorBox::getColor ( )

Get the current color.

Returns
The current color as QColor.

◆ setColor

void ColorBox::setColor ( QColor  color)
slot

Sets the color.

Parameters
colorThe new color.

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