svn commit: r506398 - head/deskutils/calibre/files

Tobias C. Berner tcberner at FreeBSD.org
Thu Jul 11 04:30:29 UTC 2019


Author: tcberner
Date: Thu Jul 11 04:30:28 2019
New Revision: 506398
URL: https://svnweb.freebsd.org/changeset/ports/506398

Log:
  deskutils/calibre: prepare for Qt 5.13
  
  PR:		238782

Added:
  head/deskutils/calibre/files/patch-git_0a5dc0   (contents, props changed)

Added: head/deskutils/calibre/files/patch-git_0a5dc0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/calibre/files/patch-git_0a5dc0	Thu Jul 11 04:30:28 2019	(r506398)
@@ -0,0 +1,30 @@
+From 0a5dc07da1cb0f9409803b4df1a92e497e3c0e95 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <eschwartz at archlinux.org>
+Date: Wed, 19 Jun 2019 11:04:06 -0400
+Subject: [PATCH] fix qt 5.13 compatibility
+
+In https://github.com/qt/qtbase/commit/01e1df90a7debd333314720fdd5cf6cd9964d796,
+screenAdded was deprecated, and as of qt 5.13 it is fully removed. Adapt
+to this change by using the new API in QWindowSystemInterface.
+---
+ src/calibre/headless/headless_integration.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/calibre/headless/headless_integration.cpp b/src/calibre/headless/headless_integration.cpp
+index 7dc2fce583..c35bb52dd3 100644
+--- src/calibre/headless/headless_integration.cpp
++++ src/calibre/headless/headless_integration.cpp
+@@ -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>());
+


More information about the svn-ports-all mailing list