summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-01-06 17:08:35 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-01-07 08:05:35 +0000
commit428c594b59a779558e48be8e61f3b65a4a141ed1 (patch)
tree0d8dc0b4a4abbd31571f8b5c2062b4a48bdfa3a4 /examples
parent62421f8b850f3224c97e4e792eafdd07b9b75699 (diff)
downloadqtquickcontrols-428c594b59a779558e48be8e61f3b65a4a141ed1.tar.gz
calendar example: don't derive from unused QSqlQueryModel base class
Change-Id: I4727e33fd8578b7032984d358d37cd7103949580 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/controls/calendar/src/sqleventmodel.cpp3
-rw-r--r--examples/quick/controls/calendar/src/sqleventmodel.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/quick/controls/calendar/src/sqleventmodel.cpp b/examples/quick/controls/calendar/src/sqleventmodel.cpp
index 95a62843..92e558ef 100644
--- a/examples/quick/controls/calendar/src/sqleventmodel.cpp
+++ b/examples/quick/controls/calendar/src/sqleventmodel.cpp
@@ -45,8 +45,7 @@
#include <QSqlError>
#include <QSqlQuery>
-SqlEventModel::SqlEventModel() :
- QSqlQueryModel()
+SqlEventModel::SqlEventModel()
{
createConnection();
}
diff --git a/examples/quick/controls/calendar/src/sqleventmodel.h b/examples/quick/controls/calendar/src/sqleventmodel.h
index ae0f3374..e7a35c01 100644
--- a/examples/quick/controls/calendar/src/sqleventmodel.h
+++ b/examples/quick/controls/calendar/src/sqleventmodel.h
@@ -43,11 +43,10 @@
#include <QList>
#include <QObject>
-#include <QSqlTableModel>
#include "event.h"
-class SqlEventModel : public QSqlQueryModel
+class SqlEventModel : public QObject
{
Q_OBJECT