Qt4-preview-feedback Archive, February 2007
Patch to diagramscene to fix compiler error
Message 1 in thread
The most recent 4.3.0 snapshots fail to compile on my RHEL3 with gcc
3.2.3 because of a compiler error in two header files in the
diagramscene example. The attached patch fixes it. This is against the
20070215 snapshot.
--Dave
--- ./diagramitem.h
--- ./diagramitem.h
+++ ./diagramitem.h
@@ -20,7 +20,7 @@
class DiagramItem : public QGraphicsPolygonItem
{
public:
- enum Type { Type = UserType + 15 };
+ enum { Type = UserType + 15 };
enum DiagramType { Step, Conditional, StartEnd, Io };
DiagramItem(DiagramType diagramType, QMenu *contextMenu,
--- ./diagramtextitem.h
+++ ./diagramtextitem.h
@@ -14,7 +14,7 @@
Q_OBJECT
public:
- enum Type { Type = UserType + 3 };
+ enum { Type = UserType + 3 };
DiagramTextItem(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);