on xenial help sign in
build on 5.0
commit6740fb18e2de62ed39b684fa8df7b175e2c49b33 authorAlbert Astals <albert.astals@canonical.com> dateFri 7 Mar 2014, 09:26 (13 years ago) parent61687ce
1 file changed+2−1
plugins/DashViews/listviewwithpageheader.cpp+2−1
plugins/DashViews/listviewwithpageheader.cpp+2−1
@@ -91,6 +91,7 @@
9191
9292#include "listviewwithpageheader.h"
9393
94+#include <QCoreApplication>
9495#include <QDebug>
9596#include <qqmlinfo.h>
9697#include <qqmlengine.h>
@@ -1279,7 +1280,7 @@ void ListViewWithPageHeader::updatePolish()
12791280 // We need to make sure all bindings have updated otherwise
12801281 // we may end up with bindings updating when we call setContentHeight
12811282 // and then everything gets out of sync, i.e. testHeaderPositionBug1240118
1282− qApp->processEvents();
1283+ QCoreApplication::instance()->processEvents();
12831284
12841285 qreal contentHeight;
12851286 if (m_visibleItems.isEmpty()) {