@@ -38,6 +38,10 @@ private Q_SLOTS:
38 view = new QQuickView();
38 view = new QQuickView();
39 view->engine()->addImportPath(BUILT_PLUGINS_DIR);
39 view->engine()->addImportPath(BUILT_PLUGINS_DIR);
40 view->setSource(QUrl::fromLocalFile(LISTVIEWWITHPAGEHEADER_FOLDER "/test.qml"));
40 view->setSource(QUrl::fromLocalFile(LISTVIEWWITHPAGEHEADER_FOLDER "/test.qml"));
41+ // This originally was
42+ // lvwph = view->rootObject()->findChild<ListViewWithPageHeader*>();
43+ // but here doesn't work because of the way we are linking listviewwithpageheader.cpp
44+ // doesn't create the moc so doesn't get the Q_OBJECT macro info
41 lvwph = dynamic_cast<ListViewWithPageHeader*>(view->rootObject()->findChild<QQuickFlickable*>());
45 lvwph = dynamic_cast<ListViewWithPageHeader*>(view->rootObject()->findChild<QQuickFlickable*>());
42 model = view->rootObject()->findChild<QQuickListModel*>();
46 model = view->rootObject()->findChild<QQuickListModel*>();
43 otherDelegate = view->rootObject()->findChild<QQmlComponent*>();
47 otherDelegate = view->rootObject()->findChild<QQmlComponent*>();