QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
QgsColorDialog Class Reference

A dialog for selecting a color. More...

#include <qgscolordialog.h>

Public Member Functions

 QgsColorDialog ()
 ~QgsColorDialog ()

Static Public Member Functions

static QColor getLiveColor (const QColor &initialColor, QObject *updateObject, const char *updateSlot, QWidget *parent=0, const QString &title="", QColorDialog::ColorDialogOptions options=0)
 Return a color selection from a QColorDialog, with live updating of interim selections.

Detailed Description

A dialog for selecting a color.

Definition at line 30 of file qgscolordialog.h.

Constructor & Destructor Documentation

QgsColorDialog::QgsColorDialog ( )

Definition at line 20 of file qgscolordialog.cpp.

QgsColorDialog::~QgsColorDialog ( )

Definition at line 24 of file qgscolordialog.cpp.

Member Function Documentation

QColor QgsColorDialog::getLiveColor ( const QColor &  initialColor,
QObject *  updateObject,
const char *  updateSlot,
QWidget *  parent = 0,
const QString &  title = "",
QColorDialog::ColorDialogOptions  options = 0 
)
static

Return a color selection from a QColorDialog, with live updating of interim selections.

Parameters
initialColorThe initial color of the selection dialog.
updateObjectThe receiver object of the live updating.
updateSlotThe receiver object's slot for live updating (e.g. SLOT( setValidColor( const QColor& ) ) ).
parentParent widget. Usually 0 is best for native system color dialogs.
titleThe title of the QColorDialog.
optionsColorDialogOptions passed to QColorDialog.
Returns
Selected color on accepted() or initialColor on rejected().

Definition at line 28 of file qgscolordialog.cpp.

References tr.

Referenced by QgsColorButton::onButtonClicked().


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