fix chromium-131-fix-qt-ui.pach
OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium-beta?expand=0&rev=174
This commit is contained in:
committed by
Git OBS Bridge
parent
661ddb74e6
commit
be54be22ed
@@ -4,21 +4,15 @@ Date: Sat, 23 Nov 2024 12:33:22 +0100
|
||||
Subject: [PATCH] Enable qt-ui
|
||||
|
||||
|
||||
diff --git a/chromium-131-qt-ui.patch b/chromium-131-qt-ui.patch
|
||||
new file mode 100644
|
||||
index 0000000..a834347
|
||||
--- /dev/null
|
||||
+++ b/chromium-131-qt-ui.patch
|
||||
@@ -0,0 +1,12 @@
|
||||
+diff -up chromium-131.0.6778.85/ui/qt/qt_shim.cc.me chromium-131.0.6778.85/ui/qt/qt_shim.cc
|
||||
+--- chromium-131.0.6778.85/ui/qt/qt_shim.cc.me 2024-11-23 10:04:16.789121846 +0100
|
||||
++++ chromium-131.0.6778.85/ui/qt/qt_shim.cc 2024-11-23 11:40:02.905064702 +0100
|
||||
+@@ -265,7 +265,7 @@ FontRenderParams QtShim::GetFontRenderPa
|
||||
+ FontDescription QtShim::GetFontDescription() const {
|
||||
+ QFont font = app_.font();
|
||||
+ return {
|
||||
+- .family = String(font.family().toStdString().c_str()),
|
||||
++ .family = String(font.family().toUtf8().constData()),
|
||||
+ .size_pixels = font.pixelSize(),
|
||||
+ .size_points = font.pointSize(),
|
||||
+ .is_italic = IsStyleItalic(font.style()),
|
||||
diff -up chromium-131.0.6778.85/ui/qt/qt_shim.cc.me chromium-131.0.6778.85/ui/qt/qt_shim.cc
|
||||
--- chromium-131.0.6778.85/ui/qt/qt_shim.cc.me 2024-11-23 10:04:16.789121846 +0100
|
||||
+++ chromium-131.0.6778.85/ui/qt/qt_shim.cc 2024-11-23 11:40:02.905064702 +0100
|
||||
@@ -265,7 +265,7 @@ FontRenderParams QtShim::GetFontRenderPa
|
||||
FontDescription QtShim::GetFontDescription() const {
|
||||
QFont font = app_.font();
|
||||
return {
|
||||
- .family = String(font.family().toStdString().c_str()),
|
||||
+ .family = String(font.family().toUtf8().constData()),
|
||||
.size_pixels = font.pixelSize(),
|
||||
.size_points = font.pointSize(),
|
||||
.is_italic = IsStyleItalic(font.style()),
|
||||
|
Reference in New Issue
Block a user