src/colorSelectDialog.h

changeset 538
2f85d4d286e5
parent 497
c51941e590b6
child 539
72ad83a67165
equal deleted inserted replaced
537:1add0ee96fb3 538:2f85d4d286e5
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

mercurial