17 #ifndef QGSCOLORDIALOG_H 18 #define QGSCOLORDIALOG_H 20 #include <QColorDialog> 22 #include "ui_qgscolordialog.h" 48 static QColor getLiveColor(
const QColor& initialColor,
QObject* updateObject,
const char* updateSlot,
87 void setTitle(
const QString& title );
93 void setAllowAlpha(
const bool allowAlpha );
105 static QColor getLiveColor(
const QColor& initialColor,
QObject* updateObject,
const char* updateSlot,
108 const bool allowAlpha =
true );
119 const bool allowAlpha =
false );
126 void currentColorChanged(
const QColor &color );
133 void setColor(
const QColor &color );
141 void on_mButtonBox_accepted();
142 void on_mButtonBox_rejected();
157 #endif // #ifndef QGSCOLORDIALOG_H static const Qt::WindowFlags ModalDialogFlags
virtual void closeEvent(QCloseEvent *e)
A custom QGIS dialog for selecting a color.
typedef ColorDialogOptions
A native operating system dialog for selecting a color.