Typos and errors

This commit is contained in:
HatEmU 2020-03-03 03:19:59 +01:00
parent 5626e9b293
commit 02899c10b9
3 changed files with 11 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include <stdexcept> #include <stdexcept>
#include <QString> #include <QString>
#include <QStyleOptionViewItem> #include <QStyleOptionViewItem>
#include <QtGlobal>
#if defined(LIMEREPORT_EXPORTS) #if defined(LIMEREPORT_EXPORTS)
# define LIMEREPORT_EXPORT Q_DECL_EXPORT # define LIMEREPORT_EXPORT Q_DECL_EXPORT
@ -157,7 +158,11 @@ namespace Const{
{ {
public: public:
enum VariableDataType {Undefined, String, Bool, Int, Real, Date, Time, DateTime}; enum VariableDataType {Undefined, String, Bool, Int, Real, Date, Time, DateTime};
#if (QT_VERSION >= QT_VERSION_CHECK(5,5, 0))
Q_ENUM(VariableDataType) Q_ENUM(VariableDataType)
#else
Q_ENUMS(VariableDataType)
#endif
private: private:
Enums(){} Enums(){}
Q_GADGET Q_GADGET

View File

@ -3,6 +3,7 @@
#include "lritemdesignintf.h" #include "lritemdesignintf.h"
#include "lrlayoutmarker.h" #include "lrlayoutmarker.h"
#include <QtGlobal>
namespace LimeReport{ namespace LimeReport{
class AbstractLayout: public LayoutDesignIntf class AbstractLayout: public LayoutDesignIntf
@ -12,7 +13,11 @@ class AbstractLayout: public LayoutDesignIntf
Q_PROPERTY(int layoutSpacing READ layoutSpacing WRITE setLayoutSpacing) Q_PROPERTY(int layoutSpacing READ layoutSpacing WRITE setLayoutSpacing)
public: public:
enum LayoutType{Layout,Table}; enum LayoutType{Layout,Table};
#if (QT_VERSION >= QT_VERSION_CHECK(5,5, 0))
Q_ENUM(LayoutType) Q_ENUM(LayoutType)
#else
Q_ENUMS(LayoutType)
#endif
AbstractLayout(QString xmlTag, QObject *owner = 0, QGraphicsItem *parent = 0); AbstractLayout(QString xmlTag, QObject *owner = 0, QGraphicsItem *parent = 0);
~AbstractLayout(); ~AbstractLayout();
QList<BaseDesignIntf*>& layoutsChildren(); QList<BaseDesignIntf*>& layoutsChildren();

View File

@ -36,7 +36,7 @@ public:
#if (QT_VERSION >= QT_VERSION_CHECK(5,5, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5,5, 0))
Q_ENUM(SeriesItemPreferredType) Q_ENUM(SeriesItemPreferredType)
#else #else
Q_ENUM(SeriesItemPreferredType) Q_ENUMS(SeriesItemPreferredType)
#endif #endif
SeriesItem(QObject* parent = 0) : QObject(parent), m_preferredType(Bar){} SeriesItem(QObject* parent = 0) : QObject(parent), m_preferredType(Bar){}
QString name() const; QString name() const;