[arch-commits] Commit in texworks/trunk (2 files)

Jonas Witschel diabonas at archlinux.org
Thu Dec 19 12:35:19 UTC 2019


    Date: Thursday, December 19, 2019 @ 12:35:18
  Author: diabonas
Revision: 538404

upgpkg: texworks 0.6.3-7

Temporary workaround for Qt 5.14.0 regression QTBUG-80831.

Added:
  texworks/trunk/Disable-mouse-tracking-for-CompletingEdit.patch
Modified:
  texworks/trunk/PKGBUILD

-------------------------------------------------+
 Disable-mouse-tracking-for-CompletingEdit.patch |   29 ++++++++++++++++++++++
 PKGBUILD                                        |   12 ++++++---
 2 files changed, 38 insertions(+), 3 deletions(-)

Added: Disable-mouse-tracking-for-CompletingEdit.patch
===================================================================
--- Disable-mouse-tracking-for-CompletingEdit.patch	                        (rev 0)
+++ Disable-mouse-tracking-for-CompletingEdit.patch	2019-12-19 12:35:18 UTC (rev 538404)
@@ -0,0 +1,29 @@
+From 4948f1b3c2ea551b7ba8ebe82833560d07a80664 Mon Sep 17 00:00:00 2001
+From: Jonas Witschel <diabonas at archlinux.org>
+Date: Thu, 19 Dec 2019 13:24:22 +0100
+Subject: [PATCH] Disable mouse tracking for CompletingEdit
+
+This is a temporary workaround for a regression in Qt 5.14.0, see
+https://github.com/TeXworks/texworks/issues/883 and
+https://bugreports.qt.io/browse/QTBUG-80831.
+---
+ src/CompletingEdit.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/CompletingEdit.cpp b/src/CompletingEdit.cpp
+index 283f418..a6f80a3 100644
+--- a/src/CompletingEdit.cpp
++++ b/src/CompletingEdit.cpp
+@@ -87,6 +87,9 @@ CompletingEdit::CompletingEdit(QWidget *parent)
+ 	cursorPositionChangedSlot();
+ 	updateLineNumberAreaWidth(0);
+ 	updateColors();
++
++	// Workaround for Qt 5.14, see https://bugreports.qt.io/browse/QTBUG-80831
++	setMouseTracking(false);
+ }
+ 
+ void CompletingEdit::prefixLines(const QString &prefix)
+-- 
+2.24.1
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-19 12:27:26 UTC (rev 538403)
+++ PKGBUILD	2019-12-19 12:35:18 UTC (rev 538404)
@@ -1,7 +1,7 @@
 # Maintainer: Jonas Witschel <diabonas at archlinux.org>
 pkgname=texworks
 pkgver=0.6.3
-pkgrel=6
+pkgrel=7
 pkgdesc='Unicode-based, TeX-aware editor with integrated PDF viewer'
 arch=('x86_64')
 url='https://www.tug.org/texworks/'
@@ -14,11 +14,17 @@
             'poppler-data: correctly display certain CJK documents'
             'python: Python scripts support'
             'texlive-core: typeset TeX documents')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/TeXworks/texworks/archive/release-$pkgver.tar.gz")
-sha512sums=('389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/TeXworks/texworks/archive/release-$pkgver.tar.gz"
+        'Disable-mouse-tracking-for-CompletingEdit.patch')
+sha512sums=('389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653'
+            'f5ba88b540c744162b1ba4a9c3442fc8985033d934c8520b7d0db196bcb0f78a3e0eb8fd826f5d9393ba4d5fb37d78e0d9620c2ba3acf6e74fc085542d3b8f20')
 
 prepare() {
 	mkdir build
+
+	# Temporary workaround for https://bugreports.qt.io/browse/QTBUG-80831
+	cd "texworks-release-$pkgver"
+	patch --strip=1 --input="$srcdir/Disable-mouse-tracking-for-CompletingEdit.patch"
 }
 
 build() {



More information about the arch-commits mailing list