aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/snippets
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-01 13:26:21 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-22 19:32:37 +0000
commitcd716f1b1c903b7a2fdfd82bb88959119ebca72d (patch)
treea8ff297e58d34b0c8b6fd24a51a2301c8c2708bb /tests/auto/snippets
parentfaa65aebb2e52cc809248f6cbb86b994ff329285 (diff)
Introduce ToolTip
Change-Id: I917f7e83219788fc63389773eb07ee39757bed7f Task-number: QTBUG-51003 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/snippets')
-rw-r--r--tests/auto/snippets/tst_snippets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp
index a2e07be7..161e0fe0 100644
--- a/tests/auto/snippets/tst_snippets.cpp
+++ b/tests/auto/snippets/tst_snippets.cpp
@@ -50,7 +50,6 @@ private slots:
void screenshots_data();
private:
- QQuickView view;
QMap<QString, QStringPair> filePaths;
};
@@ -81,6 +80,7 @@ void tst_Snippets::screenshots()
qRegisterMetaType<QList<QQmlError> >();
+ QQuickView view;
QSignalSpy warnings(view.engine(), SIGNAL(warnings(QList<QQmlError>)));
QVERIFY(warnings.isValid());
@@ -95,7 +95,7 @@ void tst_Snippets::screenshots()
view.requestActivate();
QVERIFY(QTest::qWaitForWindowActive(&view));
- QSharedPointer<QQuickItemGrabResult> result = view.rootObject()->grabToImage();
+ QSharedPointer<QQuickItemGrabResult> result = view.contentItem()->grabToImage();
QSignalSpy spy(result.data(), SIGNAL(ready()));
QVERIFY(spy.isValid());
QVERIFY(spy.wait());