Mercurial > hg > svgui
diff widgets/ColourMapComboBox.h @ 1199:73d43e410a6b levelpanwidget
Add swatches to colour map combo (optionally, as it turns out they are quite visually distracting)
author | Chris Cannam |
---|---|
date | Fri, 16 Dec 2016 15:55:59 +0000 |
parents | 69ff93e0c624 |
children |
line wrap: on
line diff
--- a/widgets/ColourMapComboBox.h Fri Dec 16 14:16:05 2016 +0000 +++ b/widgets/ColourMapComboBox.h Fri Dec 16 15:55:59 2016 +0000 @@ -19,14 +19,14 @@ #include "NotifyingComboBox.h" /** - * Colour map picker combo box with swatches + * Colour map picker combo box with optional swatches */ class ColourMapComboBox : public NotifyingComboBox { Q_OBJECT public: - ColourMapComboBox(QWidget *parent = 0); + ColourMapComboBox(bool includeSwatches, QWidget *parent = 0); signals: void colourMapChanged(int index); @@ -34,6 +34,9 @@ private slots: void rebuild(); void comboActivated(int); + +private: + bool m_includeSwatches; }; #endif