aboutsummaryrefslogtreecommitdiff
path: root/qt/mysql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-27 12:34:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-27 12:34:57 +0200
commitf8b4329205ff7a1b965ce35e99a7943d9a82f5d4 (patch)
tree4fd6efd1155e675fb93e4ff0b53c837d034382d8 /qt/mysql
parentcca7bfddb2ac380481cf4445c8727f006f16f4b8 (diff)
Use QtCore prefix when including Qt headers1.4.0
This appears to be more portable. For example, on Mac OS X with -framework QtCore option include <QString> does not work while including <QtCore/QString> does.
Diffstat (limited to 'qt/mysql')
-rw-r--r--qt/mysql/basic/test.hxx4
-rw-r--r--qt/mysql/date-time/driver.cxx2
-rw-r--r--qt/mysql/date-time/test.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/qt/mysql/basic/test.hxx b/qt/mysql/basic/test.hxx
index 1e1f9e6..83b1396 100644
--- a/qt/mysql/basic/test.hxx
+++ b/qt/mysql/basic/test.hxx
@@ -6,8 +6,8 @@
#ifndef TEST_HXX
#define TEST_HXX
-#include <QString>
-#include <QByteArray>
+#include <QtCore/QString>
+#include <QtCore/QByteArray>
#pragma db object
struct object
diff --git a/qt/mysql/date-time/driver.cxx b/qt/mysql/date-time/driver.cxx
index ae0643b..a6637bb 100644
--- a/qt/mysql/date-time/driver.cxx
+++ b/qt/mysql/date-time/driver.cxx
@@ -10,7 +10,7 @@
#include <cassert>
#include <iostream>
-#include <QDateTime>
+#include <QtCore/QDateTime>
#include <odb/mysql/database.hxx>
#include <odb/mysql/transaction.hxx>
diff --git a/qt/mysql/date-time/test.hxx b/qt/mysql/date-time/test.hxx
index 9eb328e..b40f45f 100644
--- a/qt/mysql/date-time/test.hxx
+++ b/qt/mysql/date-time/test.hxx
@@ -8,7 +8,7 @@
#include <vector>
-#include <QDateTime>
+#include <QtCore/QDateTime>
#include <odb/core.hxx>