Date: Sat, 13 Jul 2019 10:04:00 +0000 (UTC) From: "Tobias C. Berner" <tcberner@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506535 - head/x11-toolkits/qt5-gtkplatform/files Message-ID: <201907131004.x6DA40f6056250@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tcberner Date: Sat Jul 13 10:04:00 2019 New Revision: 506535 URL: https://svnweb.freebsd.org/changeset/ports/506535 Log: x11-toolkits/qt5-gtkplatform: prepare for Qt 5.13 PR: 238782 Added: head/x11-toolkits/qt5-gtkplatform/files/patch-src_qgtkintegration.cpp (contents, props changed) Added: head/x11-toolkits/qt5-gtkplatform/files/patch-src_qgtkintegration.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/qt5-gtkplatform/files/patch-src_qgtkintegration.cpp Sat Jul 13 10:04:00 2019 (r506535) @@ -0,0 +1,28 @@ +--- src/qgtkintegration.cpp.orig 2019-07-13 09:12:31 UTC ++++ src/qgtkintegration.cpp +@@ -131,7 +131,11 @@ void QGtkIntegration::onMonitorAdded(GdkMonitor *monit + { + qDebug() << "Added " << monitor; + m_screens.append(new QGtkScreen(monitor)); +- screenAdded(m_screens.at(m_screens.count() - 1)); ++ #if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)) ++ QWindowSystemInterface::handleScreenAdded(m_screens.at(m_screens.count() - 1)); ++ #else ++ screenAdded(m_screens.at(m_screens.count() - 1)); ++ #endif + } + + void QGtkIntegration::onMonitorRemoved(GdkMonitor *monitor) +@@ -139,7 +143,11 @@ void QGtkIntegration::onMonitorRemoved(GdkMonitor *mon + qDebug() << "Removed " << monitor; + for (int i = 0; i < m_screens.count(); ++i) { + if (m_screens.at(i)->monitor() == monitor) { +- removeScreen(m_screens.at(i)->screen()); ++ #if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)) ++ QWindowSystemInterface::handleScreenRemoved(m_screens.at(i)); ++ #else ++ removeScreen(m_screens.at(i)->screen()); ++ #endif + m_screens.removeAt(i); + return; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907131004.x6DA40f6056250>