[arch-commits] Commit in deepin-qt5integration/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sun Apr 26 04:32:30 UTC 2020
Date: Sunday, April 26, 2020 @ 04:32:25
Author: felixonmars
Revision: 621376
archrelease: copy trunk to community-staging-x86_64
Added:
deepin-qt5integration/repos/community-staging-x86_64/
deepin-qt5integration/repos/community-staging-x86_64/PKGBUILD
(from rev 621375, deepin-qt5integration/trunk/PKGBUILD)
deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.14.patch
(from rev 621375, deepin-qt5integration/trunk/deepin-qt5integration-qt5.14.patch)
------------------------------------+
PKGBUILD | 37 ++++++++++++++++++++++++++++
deepin-qt5integration-qt5.14.patch | 46 +++++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+)
Copied: deepin-qt5integration/repos/community-staging-x86_64/PKGBUILD (from rev 621375, deepin-qt5integration/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-26 04:32:25 UTC (rev 621376)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-qt5integration
+pkgver=5.1.0
+pkgrel=1
+pkgdesc='Qt platform theme integration plugins for DDE'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/qt5integration"
+license=('GPL3')
+depends=('dtkwidget' 'libqtxdg' 'deepin-qt5dxcb-plugin')
+makedepends=('xcb-util-renderutil' 'deepin-file-manager')
+replaces=('qt5dxcb-plugin')
+conflicts=('qt5dxcb-plugin')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5integration/archive/$pkgver.tar.gz"
+ deepin-qt5integration-qt5.14.patch)
+sha512sums=('a550021508f968ec7501595a031dd400633216de704a48cd294a9b00b2a5aae57d88a3b9322f945d5adc4d13eb98b5eef6621e5967508e2a1a7c316cf0592feb'
+ 'd227f060b3dfd324c19a957e90a210256649c366645bb2e712dbdefb0b9287dc0ae97fa14e0252d168323b06e7ba526bc351600273a4afb7c3fa2b8d59e42aa0')
+
+prepare() {
+ cd qt5integration-$pkgver
+ patch -p1 -i ../deepin-qt5integration-qt5.14.patch # Fix build with Qt 5.14
+
+ sed -i 's/^.*DPlatformWindowHandle.*$/Dtk::Widget::DPlatformWindowHandle handle((QWidget *)w);/' styleplugins/dstyleplugin/config.tests/dtkwidget/main.cpp
+ sed -i 's/QSpinBox/DSpinBox/' styleplugins/chameleon/chameleonstyle.cpp
+}
+
+build() {
+ cd qt5integration-$pkgver
+ qmake-qt5 PREFIX=/usr
+ make
+}
+
+package() {
+ cd qt5integration-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+}
Copied: deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.14.patch (from rev 621375, deepin-qt5integration/trunk/deepin-qt5integration-qt5.14.patch)
===================================================================
--- community-staging-x86_64/deepin-qt5integration-qt5.14.patch (rev 0)
+++ community-staging-x86_64/deepin-qt5integration-qt5.14.patch 2020-04-26 04:32:25 UTC (rev 621376)
@@ -0,0 +1,46 @@
+diff --git a/platformthemeplugin/qdeepintheme.cpp b/platformthemeplugin/qdeepintheme.cpp
+index e98487b..45e90bc 100644
+--- a/platformthemeplugin/qdeepintheme.cpp
++++ b/platformthemeplugin/qdeepintheme.cpp
+@@ -571,10 +571,18 @@ static bool updateScreenScaleFactors(DThemeSettings *s, const QByteArray &value,
+ }
+
+ QHighDpiScaling::updateHighDpiScaling();
++#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
+ qDebug() << QHighDpiScaling::logicalDpi();
++#else
++ qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
++#endif
+ updateScaleLogcailDpi(s->scaleLogicalDpi());
+
++#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
+ qDebug() << QHighDpiScaling::logicalDpi();
++#else
++ qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
++#endif
+
+ return true;
+ }
+--- a/platformthemeplugin/qdeepintheme.cpp 2019-12-19 17:45:47.396894045 +0800
++++ b/platformthemeplugin/qdeepintheme.cpp 2019-12-19 17:46:28.436136243 +0800
+@@ -516,19 +516,7 @@
+ static bool updateScaleLogcailDpi(const QPair<qreal, qreal> &dpi)
+ {
+ bool ok = dpi.first >= 0 && dpi.second >= 0;
+-
+- if (dpi.first > 0) {
+- QHighDpiScaling::m_logicalDpi.first = dpi.first;
+- } else if (qIsNull(dpi.first)) {
+- QHighDpiScaling::m_logicalDpi.first = qGuiApp->primaryScreen()->handle()->logicalDpi().first;
+- }
+-
+- if (dpi.second > 0) {
+- QHighDpiScaling::m_logicalDpi.second = dpi.second;
+- } else if (qIsNull(dpi.second)) {
+- QHighDpiScaling::m_logicalDpi.second = qGuiApp->primaryScreen()->handle()->logicalDpi().second;
+- }
+-
++ QHighDpiScaling::m_usePixelDensity = false;
+ return ok;
+ }
+
More information about the arch-commits
mailing list