src/dialogs/colorselector.h

changeset 1114
ffd49a28f49e
parent 1072
9ce9496427f2
child 1159
6ad8cdcd88d9
equal deleted inserted replaced
1113:5f3139c802bf 1114:ffd49a28f49e
24 class ColorSelector : public QDialog, public HierarchyElement 24 class ColorSelector : public QDialog, public HierarchyElement
25 { 25 {
26 Q_OBJECT 26 Q_OBJECT
27 27
28 public: 28 public:
29 explicit ColorSelector (QWidget* parent, LDColor defaultvalue = LDColor::nullColor()); 29 explicit ColorSelector (QWidget* parent, LDColor defaultvalue = LDColor::nullColor);
30 virtual ~ColorSelector(); 30 virtual ~ColorSelector();
31 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor()); 31 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor);
32 LDColor selection() const; 32 LDColor selection() const;
33 33
34 private: 34 private:
35 class Ui_ColorSelUi& ui; 35 class Ui_ColorSelUi& ui;
36 QMap<int, QPushButton*> m_buttons; 36 QMap<int, QPushButton*> m_buttons;

mercurial