Commit 6eaa69a9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15. SkipEmptyParts is part of Qt::.

parent 0742e0ce
......@@ -275,7 +275,11 @@ void GameGLView::dumpExtensions()
QString s = (const char*)glGetString(GL_EXTENSIONS);
s += QLatin1Char(' ');
s += (const char*)gluGetString(GLU_EXTENSIONS);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList extensions = s.split (' ', QString::SkipEmptyParts);
#else
QStringList extensions = s.split (' ', Qt::SkipEmptyParts);
#endif
for (int i = 0; i < extensions.count(); i++)
{
std::cout << extensions[i].toLatin1().data() << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment