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:
blacksun
2019-03-18 19:49:12 +00:00
parent 07da381515
commit 1ac950cd81
4 changed files with 38 additions and 35 deletions

View File

@@ -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;}

View File

@@ -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 };