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

index c09d4c1..e1fa802 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 1381357..d9d2af2 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);