Langmuir
Simulation
|
A class to open color dialogs by clicking. More...
#include <colorbutton.h>
Public Slots | |
void | setButtonColor (QColor color) |
set the current color More... | |
void | getColor () |
open dialog and get user selected color More... | |
Signals | |
void | selectedColor (QColor color) |
signal that the color of has changed More... | |
Public Member Functions | |
ColorButton (QWidget *parent=0) | |
create the ColorButton More... | |
QColorDialog & | colorDialog () |
Get a reference to the dialog. More... | |
~ColorButton () | |
destroy the ColorButton More... | |
Protected Attributes | |
QColor | m_color |
current color More... | |
Static Protected Attributes | |
static QColorDialog * | m_colordialog |
static dialog More... | |
A class to open color dialogs by clicking.
|
explicit |
create the ColorButton
parent | QObject this belongs to |
LangmuirView::ColorButton::~ColorButton | ( | ) |
destroy the ColorButton
QColorDialog& LangmuirView::ColorButton::colorDialog | ( | ) |
Get a reference to the dialog.
|
slot |
open dialog and get user selected color
|
signal |
signal that the color of has changed
color | value of color |
|
slot |
set the current color
color | value of color to set |
|
protected |
current color
|
staticprotected |
static dialog