forked from qt-creator/qt-creator
Make Creator compile without QtQuick module being present
This is an unsupported configuration for testing only. Change-Id: Idf5dde8210e0599806a3374a964adfd192b60149 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -82,9 +82,14 @@ void HostOsInfo::unsetOverrideFileNameCaseSensitivity()
|
||||
|
||||
bool HostOsInfo::canCreateOpenGLContext(QString *errorMessage)
|
||||
{
|
||||
#ifdef QT_NO_OPENGL
|
||||
Q_UNUSED(errorMessage)
|
||||
return false;
|
||||
#else
|
||||
static const bool canCreate = QOpenGLContext().create();
|
||||
if (!canCreate)
|
||||
*errorMessage = QApplication::translate("Utils::HostOsInfo",
|
||||
"Cannot create OpenGL context.");
|
||||
return canCreate;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user