diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-01-06 17:08:35 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-01-07 08:05:35 +0000 |
commit | 428c594b59a779558e48be8e61f3b65a4a141ed1 (patch) | |
tree | 0d8dc0b4a4abbd31571f8b5c2062b4a48bdfa3a4 | |
parent | 62421f8b850f3224c97e4e792eafdd07b9b75699 (diff) | |
download | qtquickcontrols-428c594b59a779558e48be8e61f3b65a4a141ed1.tar.gz |
calendar example: don't derive from unused QSqlQueryModel base class
Change-Id: I4727e33fd8578b7032984d358d37cd7103949580
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r-- | examples/quick/controls/calendar/src/sqleventmodel.cpp | 3 | ||||
-rw-r--r-- | examples/quick/controls/calendar/src/sqleventmodel.h | 3 |
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 |