https://bugs.kde.org/show_bug.cgi?id=455662

sh_zam <sh...@sdf.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|krita-bugs-n...@kde.org     |sh...@sdf.org
                 CC|                            |sh...@sdf.org
             Status|REPORTED                    |ASSIGNED

--- Comment #1 from sh_zam <sh...@sdf.org> ---
I think the best solution would be to just disable this style since it looks
very odd (i.e when it doesn't crash:
https://photos.app.goo.gl/qXQTTGcUvv93PCFL8). What do you think Halla?

Maybe something like this:

>From 251473543485b4137290d964f347dd35d8450656 Mon Sep 17 00:00:00 2001
From: Sharaf Zaman <sh...@sdf.org>
Date: Sat, 6 Aug 2022 15:49:00 +0000
Subject: [PATCH] Android: Disable "android" style since it crashes

... and it looks disproportionate when it does work.

BUG:455662
---
 libs/ui/KisMainWindow.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index b69710c467..2a40c66807 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -398,6 +398,12 @@ KisMainWindow::KisMainWindow(QUuid uuid)
     d->styleActions = new QActionGroup(this);
     QAction * action;
     Q_FOREACH (QString styleName, QStyleFactory::keys()) {
+#ifdef Q_OS_ANDROID
+        // disable the style for android platform
+        if (styleName.contains("android")) {
+            continue;
+        }
+#endif
         action = new QAction(styleName, d->styleActions);
         action->setCheckable(true);
         d->actionMap.insert(styleName, action);
-- 
2.37.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to