mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-11 01:09:58 +02:00
Replace Q_ENUMS (with S, deprecated since Qt5.5) by Q_ENUM (without S)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5800 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -50,12 +50,13 @@ class DynamicElementTextItem : public DiagramTextItem
|
||||
Q_PROPERTY(qreal textWidth READ textWidth WRITE setTextWidth NOTIFY textWidthChanged)
|
||||
|
||||
public:
|
||||
Q_ENUMS(TextFrom)
|
||||
|
||||
enum TextFrom {
|
||||
UserText,
|
||||
ElementInfo,
|
||||
CompositeText
|
||||
};
|
||||
Q_ENUM (TextFrom)
|
||||
enum {Type = UserType + 1010};
|
||||
int type() const override {return Type;}
|
||||
|
||||
|
||||
@@ -54,11 +54,11 @@ class QetShapeItem : public QetGraphicsItem
|
||||
|
||||
|
||||
public:
|
||||
Q_ENUMS(ShapeType)
|
||||
enum ShapeType {Line =1,
|
||||
Rectangle =2,
|
||||
Ellipse =4,
|
||||
Polygon =8 };
|
||||
Q_ENUM (ShapeType)
|
||||
|
||||
enum { Type = UserType + 1008 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user