CONFIG += c++11

This commit is contained in:
Hamed Masafi 2018-02-25 18:47:49 +03:30
parent fa21efde1b
commit f0fa6bd6bf
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
QT += core sql QT += core sql
CONFIG += c++11
INCLUDEPATH += $$PWD/include INCLUDEPATH += $$PWD/include
HEADERS += \ HEADERS += \

View File

@ -41,6 +41,7 @@ class SqlGeneratorBase : public QObject
Database *_database; Database *_database;
public: public:
//TODO: remove this enum
enum CommandType{ enum CommandType{
Select, Select,
Insert, Insert,
@ -96,7 +97,8 @@ public:
const int take = -1); const int take = -1);
virtual QString selectCommand(const QString &tableName, virtual QString selectCommand(const QString &tableName,
const AgregateType &t, const QString &agregateArg, const AgregateType &t,
const QString &agregateArg,
const ConditionalPhrase &where, const ConditionalPhrase &where,
const QList<RelationModel *> &joins, const QList<RelationModel *> &joins,
const int skip = -1, const int skip = -1,