COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
This is QLabel that display a color picker when clicked and can give this color back. More...
#include <ColorSelector.hpp>
Inherits QLabel.
Signals | |
void | valueChanged (QColor color, int raw) |
Public Member Functions | |
ColorSelector (int raw, QWidget *parent=0) | |
QColor | get_color () |
Return the selected color. More... | |
void | set_color (QColor color) |
void | set_row (int row) |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
Private Member Functions | |
void | set_color () |
Set the color choosed as the m_color. More... | |
Private Attributes | |
QColor | m_color |
The selected color. More... | |
int | m_raw |
This is QLabel that display a color picker when clicked and can give this color back.
Definition at line 29 of file ColorSelector.hpp.
ColorSelector | ( | int | raw, |
QWidget * | parent = 0 |
||
) |
Constructor.
parent | Parent of this widget. |
Definition at line 22 of file ColorSelector.cpp.
QColor get_color | ( | ) |
Return the selected color.
Definition at line 79 of file ColorSelector.cpp.
|
protected |
called when the QLabel is clicked.
event | The ;ouse event. |
Definition at line 74 of file ColorSelector.cpp.
void set_color | ( | QColor | color | ) |
|
private |
Set the color choosed as the m_color.
Definition at line 30 of file ColorSelector.cpp.
void set_row | ( | int | row | ) |
Set the row number of this colorSelector.
row | The row number. |
Definition at line 83 of file ColorSelector.cpp.
|
signal |
Signal emited when the color value has changed.
color | The new color value. |
|
private |
The selected color.
Definition at line 60 of file ColorSelector.hpp.
|
private |
Definition at line 61 of file ColorSelector.hpp.
Send comments to: COOLFluiD Web Admin |