@@ -91,6 +91,7 @@
92#include "listviewwithpageheader.h"
92#include "listviewwithpageheader.h"
94+#include <QCoreApplication>
94#include <QDebug>
95#include <QDebug>
95#include <qqmlinfo.h>
96#include <qqmlinfo.h>
96#include <qqmlengine.h>
97#include <qqmlengine.h>
@@ -1279,7 +1280,7 @@ void ListViewWithPageHeader::updatePolish()
1279 // We need to make sure all bindings have updated otherwise
1280 // We need to make sure all bindings have updated otherwise
1280 // we may end up with bindings updating when we call setContentHeight
1281 // we may end up with bindings updating when we call setContentHeight
1281 // and then everything gets out of sync, i.e. testHeaderPositionBug1240118
1282 // and then everything gets out of sync, i.e. testHeaderPositionBug1240118
1282− qApp->processEvents();
1283+ QCoreApplication::instance()->processEvents();
1284 qreal contentHeight;
1285 qreal contentHeight;
1285 if (m_visibleItems.isEmpty()) {
1286 if (m_visibleItems.isEmpty()) {