fix qt 5.13 compatibility

In 01e1df90a7,
screenAdded was deprecated, and as of qt 5.13 it is fully removed. Adapt
to this change by using the new API in QWindowSystemInterface.
This commit is contained in:
Eli Schwartz 2019-06-19 11:04:06 -04:00
parent 1be0c8ee8b
commit 0a5dc07da1
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -64,7 +64,12 @@ HeadlessIntegration::HeadlessIntegration(const QStringList &parameters)
mPrimaryScreen->mDepth = 32;
mPrimaryScreen->mFormat = QImage::Format_ARGB32_Premultiplied;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
QWindowSystemInterface::handleScreenAdded(mPrimaryScreen);
#else
screenAdded(mPrimaryScreen);
#endif
#ifdef __APPLE__
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
m_fontDatabase.reset(new QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine>());