Updraft
1.0
Open source glider flight visualisation tool.
|
Editor for QColor in settings dialog. More...
#include <coloreditor.h>
Public Member Functions | |
ColorEditor (QWidget *parent=0) | |
const QColor & | color () |
Gets the color property from this editor. | |
void | setColor (const QColor &c) |
Sets the color property of this editor. | |
Properties | |
QColor | color |
Private Slots | |
void | onClick () |
Reacts to the click on the editor's button. | |
Private Attributes | |
QColor | c |
The color property of this editor. | |
QPushButton * | button |
The displayed button of this editor. |
Editor for QColor in settings dialog.
Displays a button that opens standard color dialog when clicked.
Updraft::Core::ColorEditor::ColorEditor | ( | QWidget * | parent = 0 | ) | [explicit] |
const QColor& Updraft::Core::ColorEditor::color | ( | ) |
Gets the color property from this editor.
void Updraft::Core::ColorEditor::onClick | ( | ) | [private, slot] |
Reacts to the click on the editor's button.
Creates a color-selection dialog and lets the user select the color using it.
void Updraft::Core::ColorEditor::setColor | ( | const QColor & | c | ) |
Sets the color property of this editor.
c | The color to set |
QPushButton* Updraft::Core::ColorEditor::button [private] |
The displayed button of this editor.
QColor Updraft::Core::ColorEditor::c [private] |
The color property of this editor.
const QColor & Updraft::Core::ColorEditor::color [read, write] |