summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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