#include <QRegExp>
#include <QString>
#include <QStringList>
++#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
++#include <QSurfaceFormat>
++#endif
#include <stdlib.h>
}
}
++#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
++ // initialization of the X11 visual on Linux
++ QSurfaceFormat format;
++ format.setDepthBufferSize(16);
++ format.setStencilBufferSize(1);
++ format.setProfile(QSurfaceFormat::CompatibilityProfile);
++ QSurfaceFormat::setDefaultFormat(format);
++#endif
++
// add <qtdir>/plugins directory to the pluins search path for image plugins
QString qtdir = Qtx::qtDir( "plugins" );
if ( !qtdir.isEmpty() )