Unsolved Signals with enum
-
enum { LINE_DRAW, RECT_DRAW, ELLIPSE_DRAW, TEXT_DRAW, IMAGE_DRAW } draw_type; signals: newItem(enum draw_type);
-
-
To add to what @6thC said this is not the correct syntax. You're defining a variable of an anonymous enum type.
Should be:enum DrawType { LINE_DRAW, RECT_DRAW, ELLIPSE_DRAW, TEXT_DRAW, IMAGE_DRAW }; signals: void newItem(DrawType drawType) const;