aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquicklistview
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-25 08:49:45 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-28 09:06:52 +0100
commit7f20428c91bad817b2d350536756dd55a8d2103b (patch)
tree6f8fedd485d2a0a18c31560020b504bdf82efb35 /tests/auto/declarative/qquicklistview
parentd0d12171b06d568bfcc7717471f4af5b877cfc1f (diff)
QtDeclarative: Fix warnings in tests.
- Unused parameters - Missing interfaces - tst_QQuickListView: Fix call canvas->rootContext()->setContextProperty to use a QVariant (instead of implicitly converting to QObject*) which was apparently intended. Change-Id: Idc95d9408051e6f5b7005a7eccd764ac218ff867 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qquicklistview')
-rw-r--r--tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp b/tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp
index a39082d738..b12bf3eb50 100644
--- a/tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp
+++ b/tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp
@@ -911,7 +911,7 @@ void tst_QQuickListView::insertBeforeVisible_data()
}
template <class T>
-void tst_QQuickListView::removed(bool animated)
+void tst_QQuickListView::removed(bool /* animated */)
{
QQuickView *canvas = createView();
@@ -3027,7 +3027,7 @@ void tst_QQuickListView::header_delayItemCreation()
TestModel model;
- canvas->rootContext()->setContextProperty("setCurrentToZero", false);
+ canvas->rootContext()->setContextProperty("setCurrentToZero", QVariant(false));
canvas->setSource(QUrl::fromLocalFile(TESTDATA("fillModelOnComponentCompleted.qml")));
qApp->processEvents();