Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azbesthu/8845408 to your computer and use it in GitHub Desktop.
Save azbesthu/8845408 to your computer and use it in GitHub Desktop.
ORIGINAL:
void QQuickWebEngineView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
{
QQuickItem::geometryChanged(newGeometry, oldGeometry);
Q_FOREACH(QQuickItem *child, childItems()) {
Q_ASSERT(
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
qobject_cast<RenderWidgetHostViewQtDelegateQuick *>(child) ||
#endif
qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child));
child->setSize(newGeometry.size());
}
}
PREPROCESSED:
void QQuickWebEngineView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
{
QQuickItem::geometryChanged(newGeometry, oldGeometry);
for (const QForeachContainerBase &_container_ = qForeachContainerNew(childItems()); qForeachContainer(&_container_, true ? 0 : qForeachPointer(childItems()))->condition(); ++qForeachContainer(&_container_, true ? 0 : qForeachPointer(childItems()))->i) for (QQuickItem *child = *qForeachContainer(&_container_, true ? 0 : qForeachPointer(childItems()))->i; qForeachContainer(&_container_, true ? 0 : qForeachPointer(childItems()))->brk; --qForeachContainer(&_container_, true ? 0 : qForeachPointer(childItems()))->brk) {
((!(#if (0x050200 >= ((5<<16)|(2<<8)|(0))) qobject_cast<RenderWidgetHostViewQtDelegateQuick *>(child) || #endif qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child))) ? qt_assert("#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) qobject_cast<RenderWidgetHostViewQtDelegateQuick *>(child) || #endif qobject_cast<RenderWidgetHostViewQtDelegateQuickPainted *>(child)","api\\qquickwebengineview.cpp",451) : qt_noop());
#line 452 "api\\qquickwebengineview.cpp"
child->setSize(newGeometry.size());
}
}
@azbesthu
Copy link
Author

azbesthu commented Feb 6, 2014

    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_BUILD_WEBENGINE_LIB -DQT_BUILD_WEBENGINE_LI

B -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISA
BLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_NO_EXCEPTIONS -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LI
B -DQT_QUICK_LIB -DQT_QML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"." -I"api" -I"..\core"
-I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtWebEngine" -I"C:\Qt5.2.0-qtwe-dev-sourc
e\qt5\qtbase\include\QtWebEngine\5.2.0" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtWebEngine\5.2.0\QtWebEngine" -I"tmp" -I"C:\Qt5.2.
0-qtwe-dev-source\qt5\qtbase\include\QtQuick" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtQml" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtba
se\include\QtNetwork" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtGui" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtANGLE" -I"C
:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtCore" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtQuick\5.2.0" -I"C:\Qt5.2.0-qtwe-dev-
source\qt5\qtbase\include\QtQuick\5.2.0\QtQuick" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtQml\5.2.0" -I"C:\Qt5.2.0-qtwe-dev-source
\qt5\qtbase\include\QtQml\5.2.0\QtQml" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtGui\5.2.0" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbas
e\include\QtGui\5.2.0\QtGui" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include\QtCore\5.2.0" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\include
\QtCore\5.2.0\QtCore" -I".moc\debug" -I"C:\Qt5.2.0-qtwe-dev-source\qt5\qtbase\mkspecs\win32-msvc2010" -Fo.obj\debug\ @C:\Users\ADMINI~1\AppD
ata\Local\Temp\2\nmBE3D.tmp
qquickwebengineview.cpp
api\qquickwebengineview.cpp(451) : error C2121: '#' : invalid character : possibly the result of a macro expansion
api\qquickwebengineview.cpp(451) : error C2059: syntax error : 'if'
api\qquickwebengineview.cpp(451) : error C2121: '#' : invalid character : possibly the result of a macro expansion
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.

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