qbs file fixed
This commit is contained in:
parent
cd1bf90608
commit
90be3ad9de
78
nut.qbs
78
nut.qbs
|
|
@ -1,39 +1,53 @@
|
|||
import qbs
|
||||
|
||||
Product {
|
||||
type: "staticlibrary"
|
||||
name: "nut"
|
||||
Depends { name: 'cpp' }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "Qt.sql" }
|
||||
Project {
|
||||
// StaticLibrary {
|
||||
// name: "nut_static"
|
||||
// files: [
|
||||
// "src/*.h",
|
||||
// "src/*.cpp",
|
||||
// "src/generators/*.h",
|
||||
// "src/generators/*.cpp"
|
||||
// ]
|
||||
// Depends { name: 'cpp' }
|
||||
// Depends { name: "Qt.core" }
|
||||
// Depends { name: "Qt.sql" }
|
||||
// Group { qbs.install: true; fileTagsFilter: product.type;}
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
// Export {
|
||||
// Depends { name: "cpp" }
|
||||
// Depends { name: "Qt.core" }
|
||||
// Depends { name: "Qt.sql" }
|
||||
// cpp.includePaths: [
|
||||
// product.sourceDirectory + "/src",
|
||||
// product.sourceDirectory + "/include"
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
|
||||
DynamicLibrary {
|
||||
name: "nut"
|
||||
files: [
|
||||
"src/*.h",
|
||||
"src/*.cpp",
|
||||
"src/generators/*.h",
|
||||
"src/generators/*.cpp"
|
||||
]
|
||||
|
||||
Depends { name: 'cpp' }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "Qt.sql" }
|
||||
cpp.includePaths: [
|
||||
product.sourceDirectory + "/src",
|
||||
product.sourceDirectory + "/include"
|
||||
]
|
||||
}
|
||||
|
||||
files: [
|
||||
"src/tableset.cpp",
|
||||
"src/query.cpp",
|
||||
"src/databasemodel.cpp",
|
||||
"src/tablesetbase.cpp",
|
||||
"src/changelogtable.cpp",
|
||||
"src/querybase.cpp",
|
||||
"src/tablemodel.cpp",
|
||||
"src/wherephrase.cpp",
|
||||
"src/table.cpp",
|
||||
"src/database.cpp",
|
||||
"src/generators/sqlgeneratorbase.cpp",
|
||||
"src/generators/postgresqlgenerator.cpp",
|
||||
"src/generators/mysqlgenerator.cpp",
|
||||
"src/generators/sqlitegenerator.cpp",
|
||||
"src/generators/sqlservergenerator.cpp",
|
||||
"src/types/dbgeography.cpp",
|
||||
"src/serializableobject.cpp"
|
||||
]
|
||||
Group { qbs.install: true; fileTagsFilter: product.type;}
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "Qt.sql" }
|
||||
cpp.includePaths: [
|
||||
product.sourceDirectory + "/src",
|
||||
product.sourceDirectory + "/include"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ ConditionalPhrase ConditionalPhrase::operator ==(const QVariant &other)
|
|||
// const_cast<ConditionalPhrase&>(other));
|
||||
//}
|
||||
|
||||
#define DECLARE_CONDITIONALPHRASE_OPERATORS(op, cond) \
|
||||
#define DECLARE_CONDITIONALPHRASE_OPERATORS_IMPL(op, cond) \
|
||||
ConditionalPhrase operator op(const ConditionalPhrase &l, \
|
||||
const ConditionalPhrase &r) \
|
||||
{ \
|
||||
|
|
@ -526,9 +526,9 @@ ConditionalPhrase operator op(ConditionalPhrase &&l, ConditionalPhrase &&r) \
|
|||
return p; \
|
||||
}
|
||||
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS(==, PhraseData::Equal)
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS(||, PhraseData::Or)
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS(&&, PhraseData::And)
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS_IMPL(==, PhraseData::Equal)
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS_IMPL(||, PhraseData::Or)
|
||||
DECLARE_CONDITIONALPHRASE_OPERATORS_IMPL(&&, PhraseData::And)
|
||||
|
||||
ConditionalPhrase ConditionalPhrase::operator !()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
#ifndef TABLESET_H
|
||||
#define TABLESET_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/QtGlobal>
|
||||
#include <QtCore/QMetaMethod>
|
||||
#include <QtCore/QMetaType>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtSql/QSqlQuery>
|
||||
|
||||
#include "tablesetbase_p.h"
|
||||
|
|
@ -52,6 +52,7 @@ public:
|
|||
int length() const;
|
||||
T *at(int i) const;
|
||||
const T &operator[](int i) const;
|
||||
|
||||
Query<T> *query();
|
||||
Query<T> *query(bool autoDelete);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
#ifndef CONSTS_H
|
||||
#define CONSTS_H
|
||||
|
||||
#define PRINT(x) qDebug() << #x "=" << x;
|
||||
#define TIC() QElapsedTimer timer; timer.start()
|
||||
#define TOC() qDebug() << QString("Elapsed time: %1ms for %2") \
|
||||
.arg(timer.elapsed() / 1000.) \
|
||||
.arg(__func__)
|
||||
|
||||
//#define DRIVER "QPSQL"
|
||||
//#define HOST "127.0.0.1"
|
||||
//#define DATABASE "nutdb2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue