17 #ifndef QGSCOLORDIALOG_H 18 #define QGSCOLORDIALOG_H 20 #include <QColorDialog> 21 #include "ui_qgscolordialog.h" 36 class GUI_EXPORT
QgsColorDialog :
public QDialog,
private Ui::QgsColorDialogBase
50 const QColor &color = QColor() );
62 void setTitle(
const QString &title );
70 void setAllowOpacity(
bool allowOpacity );
80 static QColor getColor(
const QColor &initialColor, QWidget *parent,
const QString &title = QString(),
81 bool allowOpacity =
false );
89 void currentColorChanged(
const QColor &color );
97 void setColor(
const QColor &color );
101 void closeEvent( QCloseEvent *e )
override;
105 void mButtonBox_accepted();
106 void mButtonBox_rejected();
107 void mButtonBox_clicked( QAbstractButton *button );
113 QColor mPreviousColor;
115 bool mAllowOpacity =
true;
124 #endif // #ifndef QGSCOLORDIALOG_H
A custom QGIS dialog for selecting a color.