mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
1be0c8ee8b
commit
0a5dc07da1
@ -64,7 +64,12 @@ HeadlessIntegration::HeadlessIntegration(const QStringList ¶meters)
|
|||||||
mPrimaryScreen->mDepth = 32;
|
mPrimaryScreen->mDepth = 32;
|
||||||
mPrimaryScreen->mFormat = QImage::Format_ARGB32_Premultiplied;
|
mPrimaryScreen->mFormat = QImage::Format_ARGB32_Premultiplied;
|
||||||
|
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
||||||
|
QWindowSystemInterface::handleScreenAdded(mPrimaryScreen);
|
||||||
|
#else
|
||||||
screenAdded(mPrimaryScreen);
|
screenAdded(mPrimaryScreen);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
|
||||||
m_fontDatabase.reset(new QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine>());
|
m_fontDatabase.reset(new QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine>());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user