29 class ColorSelector : public QDialog |
29 class ColorSelector : public QDialog |
30 { Q_OBJECT |
30 { Q_OBJECT |
31 READ_PROPERTY (LDColor*, sel, setSelection) |
31 READ_PROPERTY (LDColor*, sel, setSelection) |
32 |
32 |
33 public: |
33 public: |
34 explicit ColorSelector (short defval = -1, QWidget* parent = null); |
34 explicit ColorSelector (int defval = -1, QWidget* parent = null); |
35 virtual ~ColorSelector(); |
35 virtual ~ColorSelector(); |
36 static bool getColor (short& val, short defval = -1, QWidget* parent = null); |
36 static bool selectColor (int& val, int defval = -1, QWidget* parent = null); |
37 |
37 |
38 protected: |
38 protected: |
39 void mousePressEvent (QMouseEvent* event); |
39 void mousePressEvent (QMouseEvent* event); |
40 void resizeEvent (QResizeEvent* ev); |
40 void resizeEvent (QResizeEvent* ev); |
41 |
41 |