From 8d0664c53177d0c823a66239858a101524595c7e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 6 Feb 2012 10:44:16 +0100 Subject: QtQuick1: Fix compilation on Windows. - Add missing modules, includes. - Fix warnings. Change-Id: I21a6107db6c5978ccfd59c4202cf31e3deba19ca Reviewed-by: Andrew den Exter --- examples/declarative/modelviews/abstractitemmodel/model.cpp | 2 +- .../tutorials/extending/chapter6-plugins/chapter6-plugins.pro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/declarative') 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 -- cgit v1.2.3