0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-03 12:04:05 +03:00

Replaced the deprecated Q_ENUMS() with the currently supported Q_ENUM()

This commit is contained in:
HatEmU
2020-02-17 05:17:02 +01:00
committed by HatEmU
parent 0e77d6aab0
commit a8cbf68347
12 changed files with 28 additions and 25 deletions

View File

@@ -43,9 +43,6 @@ namespace LimeReport {
class Tag;
class TextItem : public ContentItemDesignIntf, IPageInit {
Q_OBJECT
Q_ENUMS(AutoWidth)
Q_ENUMS(AngleType)
Q_ENUMS(ValueType)
Q_PROPERTY(QString content READ content WRITE setContent)
Q_PROPERTY(int margin READ marginSize WRITE setMarginSize)
Q_PROPERTY(Qt::Alignment alignment READ alignment() WRITE setAlignment)
@@ -79,8 +76,11 @@ class TextItem : public ContentItemDesignIntf, IPageInit {
public:
enum AutoWidth{NoneAutoWidth, MaxWordLength, MaxStringLength};
Q_ENUM(AutoWidth)
enum AngleType{Angle0, Angle90, Angle180, Angle270, Angle45, Angle315};
Q_ENUM(AngleType)
enum ValueType{Default, DateTime, Double};
Q_ENUM(ValueType)
void Init();
TextItem(QObject* owner=0, QGraphicsItem* parent=0);