30 explicit ColorSelector (LDColor defaultvalue = LDColor::nullColor(), QWidget* parent = null); |
30 explicit ColorSelector (LDColor defaultvalue = LDColor::nullColor(), QWidget* parent = null); |
31 virtual ~ColorSelector(); |
31 virtual ~ColorSelector(); |
32 static bool selectColor (LDColor& val, LDColor defval = LDColor::nullColor(), QWidget* parent = null); |
32 static bool selectColor (LDColor& val, LDColor defval = LDColor::nullColor(), QWidget* parent = null); |
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; |
37 QMap<QPushButton*, int> m_buttonsReversed; |
37 QMap<QPushButton*, int> m_buttonsReversed; |
38 bool m_firstResize; |
38 bool m_firstResize; |
39 |
39 |
40 void drawColorInfo(); |
40 void drawColorInfo(); |