mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 16:39:07 +03:00
WIP
This commit is contained in:
@@ -67,7 +67,11 @@ QString replaceHTMLSymbols(const QString &value)
|
||||
return result;
|
||||
}
|
||||
|
||||
#if QT_VERSION < 0x060000
|
||||
QVector<QString> normalizeCaptures(const QRegExp& reg){
|
||||
#else
|
||||
QVector<QString> normalizeCaptures(const QRegularExpressionMatch ®){
|
||||
#endif
|
||||
QVector<QString> result;
|
||||
foreach (QString cap, reg.capturedTexts()) {
|
||||
if (!cap.isEmpty())
|
||||
|
@@ -51,7 +51,7 @@ namespace LimeReport {
|
||||
#define VARIABLE_IS_NOT_USED
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
|
||||
#if QT_VERSION >= 0x050800
|
||||
Q_NAMESPACE
|
||||
#endif
|
||||
|
||||
@@ -104,10 +104,10 @@ namespace Const{
|
||||
QString extractClassName(QString className);
|
||||
QString escapeSimbols(const QString& value);
|
||||
QString replaceHTMLSymbols(const QString &value);
|
||||
#if QT_VERSION < 0x060000
|
||||
#if QT_VERSION < 0x060000
|
||||
QVector<QString> normalizeCaptures(const QRegExp ®);
|
||||
#else
|
||||
QVector<QString> normalizeCaptures(const QRegularExpression ®);
|
||||
QVector<QString> normalizeCaptures(const QRegularExpressionMatch ®);
|
||||
#endif
|
||||
bool isColorDark(QColor color);
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace Const{
|
||||
{
|
||||
public:
|
||||
enum VariableDataType {Undefined, String, Bool, Int, Real, Date, Time, DateTime};
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
|
||||
#if QT_VERSION >= 0x050500
|
||||
Q_ENUM(VariableDataType)
|
||||
#else
|
||||
Q_ENUMS(VariableDataType)
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define LRSCRIPTENGINEMANAGERINTF_H
|
||||
#include "qglobal.h"
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
||||
#if QT_VERSION >= 0x050600
|
||||
#ifndef USE_QTSCRIPTENGINE
|
||||
#ifndef USE_QJSENGINE
|
||||
#define USE_QJSENGINE
|
||||
|
Reference in New Issue
Block a user