mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
|
|
||
|
/** \ingroup gui
|
||
|
* \class QgsColorDialog
|
||
|
* A dialog for selecting a color
|
||
|
*/
|
||
|
|
||
|
class QgsColorDialog : QObject
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgscolordialog.h>
|
||
|
%End
|
||
|
public:
|
||
|
QgsColorDialog();
|
||
|
~QgsColorDialog();
|
||
|
|
||
|
/** Return a color selection from a QColorDialog, with live updating of interim selections.
|
||
|
* @param initialColor The initial color of the selection dialog.
|
||
|
* @param updateObject The receiver object of the live updating.
|
||
|
* @param updateSlot The receiver object's slot for live updating (e.g. "setColor( const QColor& )" ).
|
||
|
* @param parent Parent widget. Usually 0 is best for native system color dialogs.
|
||
|
* @param title The title of the QColorDialog.
|
||
|
* @param options ColorDialogOptions passed to QColorDialog.
|
||
|
* @return Selected color on accepted() or initialColor on rejected().
|
||
|
*/
|
||
|
static QColor getLiveColor( const QColor& initialColor, QObject* updateObject, const char* updateSlot,
|
||
|
QWidget* parent = 0,
|
||
|
const QString& title = "",
|
||
|
QColorDialog::ColorDialogOptions options = 0 );
|
||
|
};
|