File: 0116-qt-remove-deprecated-QPainter-HighQualityAntialiasin.patch

package info (click to toggle)
vlc 3.0.21-10
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 212,728 kB
  • sloc: ansic: 441,379; cpp: 110,628; objc: 36,394; sh: 6,947; makefile: 6,592; javascript: 4,902; xml: 1,611; asm: 1,355; yacc: 640; python: 555; lex: 88; perl: 77; sed: 16
file content (28 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Tue, 10 Dec 2024 15:37:46 +0100
Subject: qt: remove deprecated QPainter::HighQualityAntialiasing usage

It's deprecated in Qt 5.15 [^1], since 5.14 [^2], and removed in Qt 6.

The commit log of [^2] even mentions its deprecated for all Qt5 but was not
marked as such yet.

[^1] https://doc.qt.io/qt-5/qpainter.html#RenderHint-enum
[^2] https://github.com/qt/qtbase/commit/1e4e006c3f6e8cbd0092fe882bc23a2280352a91
---
 modules/gui/qt/util/timetooltip.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/util/timetooltip.cpp b/modules/gui/qt/util/timetooltip.cpp
index 8cfdab3..6de5cf1 100644
--- a/modules/gui/qt/util/timetooltip.cpp
+++ b/modules/gui/qt/util/timetooltip.cpp
@@ -142,7 +142,7 @@ void TimeTooltip::show()
 void TimeTooltip::paintEvent( QPaintEvent * )
 {
     QPainter p( this );
-    p.setRenderHints( QPainter::HighQualityAntialiasing | QPainter::TextAntialiasing );
+    p.setRenderHints( QPainter::TextAntialiasing );
 
     p.setPen( Qt::black );
     p.setBrush( qApp->palette().base() );