Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Last active August 29, 2015 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save azbesthu/8850185 to your computer and use it in GitHub Desktop.
diff --git a/src/webengine/api/qquickwebengineview.cpp b/src/webengine/api/qquickwebengineview.cpp
index 049e353..f5168f0 100644
--- a/src/webengine/api/qquickwebengineview.cpp
+++ b/src/webengine/api/qquickwebengineview.cpp
@@ -444,11 +444,12 @@ void QQuickWebEngineView::geometryChanged(const QRectF &newGeometry, const QRect
QQuickItem::geometryChanged(newGeometry, oldGeometry);
Q_FOREACH(QQuickItem *child, childItems()) {
- Q_ASSERT(
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
- qobject_cast<RenderWidgetHostViewQtDelegateQuick *>(child) ||
+ Q_ASSERT(qobject_cast<RenderWidgetHostViewQtDelegateQuick *>(child) ||
+ qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child));
+#else
+ Q_ASSERT(qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child));
#endif
- qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child));
child->setSize(newGeometry.size());
}
}
@azbesthu
Copy link
Author

azbesthu commented Feb 6, 2014

still waiting:

  • webengine debug q_assert

x webengine forward define
x webengine literal

x webenginewidgets networking
x webenginewidgets func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment