#ifndef _SHAPE_FACTORY_H_ #define _SHAPE_FACTORY_H_ #include namespace ShapeFactory { enum Shape { Rect, Triangle, Ellipse, Ring, Star, Hexagon }; QPainterPath path( Shape, const QPointF &, const QSizeF & ); }; #endif