src/dialogs/colorselector.h

changeset 1173
6cd85b28f43b
parent 1159
6ad8cdcd88d9
child 1174
91696a2e022c
equal deleted inserted replaced
1172:3defab8cfd93 1173:6cd85b28f43b
32 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor); 32 static bool selectColor (QWidget* parent, LDColor& val, LDColor defval = LDColor::nullColor);
33 LDColor selection() const; 33 LDColor selection() const;
34 34
35 private: 35 private:
36 class Ui_ColorSelUi& ui; 36 class Ui_ColorSelUi& ui;
37 QMap<int, QPushButton*> m_buttons; 37 QMap<LDColor, QPushButton*> m_buttons;
38 QMap<QPushButton*, int> m_buttonsReversed; 38 QMap<QPushButton*, LDColor> m_buttonsReversed;
39 bool m_firstResize; 39 bool m_firstResize;
40 LDColor m_selection; 40 LDColor m_selection;
41 41
42 void drawColorInfo(); 42 void drawColorInfo();
43 void selectDirectColor (QColor col); 43 void selectDirectColor (QColor col);

mercurial