Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Core::ColorEditor Class Reference

Editor for QColor in settings dialog. More...

#include <coloreditor.h>

List of all members.

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.

Detailed Description

Editor for QColor in settings dialog.

Displays a button that opens standard color dialog when clicked.


Constructor & Destructor Documentation

Updraft::Core::ColorEditor::ColorEditor ( QWidget *  parent = 0) [explicit]

Member Function Documentation

Gets the color property from this editor.

Returns:
The color in 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.

Parameters:
cThe color to set

Member Data Documentation

QPushButton* Updraft::Core::ColorEditor::button [private]

The displayed button of this editor.

The color property of this editor.


Property Documentation

const QColor & Updraft::Core::ColorEditor::color [read, write]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines