]> Some of my projects - localmylist.git/commitdiff
Add namespace
authorAPTX <marek321@gmail.com>
Tue, 19 Mar 2013 19:57:30 +0000 (20:57 +0100)
committerAPTX <marek321@gmail.com>
Tue, 19 Mar 2013 19:57:30 +0000 (20:57 +0100)
localmylist/sqlquery.cpp
localmylist/sqlquery.h

index e1dee1a50b57beff31fc613b9e2b87b9a25e00cf..82868a81ee1c8c7761571cb3b042b26bde4677cd 100644 (file)
@@ -3,6 +3,8 @@
 #include <QSqlRecord>
 #include <QSqlError>
 
+namespace LocalMyList {
+
 class SqlQueryInternal
 {
 public:
@@ -85,7 +87,7 @@ QString SqlQueryInternal::lastError() const
 
 // -------------------------------
 SqlQuery::SqlQuery(QObject *parent) :
-       QObject(parent)
+       QObject(parent), d(new SqlQueryInternal)
 {
 }
 
@@ -143,3 +145,5 @@ QString SqlQuery::lastError() const
 {
        return d->lastError();
 }
+
+} // namespace LocalMyList
index 15a86c3f47ef7aa6ba8952f2c9bedb6983e9ad4d..c11cc24ba690845a66cbf9fcb8573b700210c143 100644 (file)
@@ -1,12 +1,15 @@
 #ifndef SQLQUERY_H
 #define SQLQUERY_H
 
+#include "localmylist_global.h"
 #include <QObject>
 #include <QSqlQuery>
 
+namespace LocalMyList {
+
 class SqlQueryInternal;
 
-class SqlQuery : public QObject
+class LOCALMYLISTSHARED_EXPORT SqlQuery : public QObject
 {
        Q_OBJECT
 public:
@@ -33,4 +36,6 @@ public slots:
        SqlQueryInternal *d;
 };
 
+} // namespace LocalMyList
+
 #endif // SQLQUERY_H