diff options
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/modelviews/abstractitemmodel/model.cpp | 2 | ||||
-rw-r--r-- | examples/declarative/tutorials/extending/chapter6-plugins/chapter6-plugins.pro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/modelviews/abstractitemmodel/model.cpp b/examples/declarative/modelviews/abstractitemmodel/model.cpp index a303ce56..d79bc9e8 100644 --- a/examples/declarative/modelviews/abstractitemmodel/model.cpp +++ b/examples/declarative/modelviews/abstractitemmodel/model.cpp @@ -73,7 +73,7 @@ void AnimalModel::addAnimal(const Animal &animal) endInsertRows(); } -int AnimalModel::rowCount(const QModelIndex & parent) const { +int AnimalModel::rowCount(const QModelIndex &) const { return m_animals.count(); } diff --git a/examples/declarative/tutorials/extending/chapter6-plugins/chapter6-plugins.pro b/examples/declarative/tutorials/extending/chapter6-plugins/chapter6-plugins.pro index 2d7d9489..70d4cb47 100644 --- a/examples/declarative/tutorials/extending/chapter6-plugins/chapter6-plugins.pro +++ b/examples/declarative/tutorials/extending/chapter6-plugins/chapter6-plugins.pro @@ -1,6 +1,6 @@ TEMPLATE = lib CONFIG += qt plugin -QT += quick1 +QT += quick1 widgets DESTDIR = lib OBJECTS_DIR = tmp |