]> Some of my projects - localmylist.git/commitdiff
Add dtor to and emit ready signal to SqlAsyncQuery.
authorAPTX <marek321@gmail.com>
Wed, 20 Mar 2013 12:33:15 +0000 (13:33 +0100)
committerAPTX <marek321@gmail.com>
Wed, 20 Mar 2013 12:33:15 +0000 (13:33 +0100)
localmylist/sqlasyncquery.cpp
localmylist/sqlasyncquery.h

index c09d4c16a4e1c42733a5b74d3b1397b40b657066..e1fa802f1e5b09e3e01113c428742dc8986bf9e8 100644 (file)
@@ -12,6 +12,11 @@ SqlAsyncQuery::SqlAsyncQuery(QObject *parent) :
 {
 }
 
+SqlAsyncQuery::~SqlAsyncQuery()
+{
+       delete d;
+}
+
 bool SqlAsyncQuery::prepare(const QString &query)
 {
        return d->prepare(query);
@@ -74,6 +79,7 @@ void SqlAsyncQuery::resultRecieved()
                return;
 
        d->resultReady(t->result());
+       emit resultReady();
 }
 
 } // namespace LocalMyList
index 1381357e595793fa1bb2d95985a160c63e545325..d9d2af2c930c845cee0c9dd2dbdc9b0c1c863521 100644 (file)
@@ -15,6 +15,7 @@ class LOCALMYLISTSHARED_EXPORT SqlAsyncQuery : public QObject
        Q_OBJECT
 public:
        explicit SqlAsyncQuery(QObject *parent = 0);
+       ~SqlAsyncQuery();
 
        bool prepare(const QString &query);
        void bindValue(const QString &placeholder, const QVariant &val, QSql::ParamType paramType = QSql::In);