Bug 462983

Summary: [Android] Qt buttons are arranged incorrectly in Krita's Android version
Product: [Applications] krita Reporter: Tyson Tan <tysontanx>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: alvin, halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Android   
OS: Android 13.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Qt buttons on Krita's Androids version
Qt buttons on Krita's Appimage version

Description Tyson Tan 2022-12-13 02:38:23 UTC
Qt buttons in Krita's Android version are not arranged correctly. These are the buttons like "OK", "Cancel", "Default" that displayed on the buttom-right corner of a dialogue. Because their translations seem to come from Qt, I call them "Qt buttons".

Normally, these buttons should be arranged with "OK" on the left, "Cancel" on the right, and such. However, their arrangement is reversed in the Android version, with "Cancel" on the left, "OK" on the right. This is a small thing, but contributes to mistakes more than I expected.

A similar issue happened a few years ago with the appimages, but it has been fixed since. I suppose it should be fixable on Android version too?
Comment 1 Tyson Tan 2022-12-13 02:39:02 UTC
Created attachment 154548 [details]
Qt buttons on Krita's Androids version

Qt buttons on Krita's Androids version are arranged reversely.
Comment 2 Tyson Tan 2022-12-13 02:39:47 UTC
Created attachment 154549 [details]
Qt buttons on Krita's Appimage version

Qt buttons on Krita's Appimage version where they are arranged correctly.
Comment 3 Halla Rempt 2022-12-13 07:41:59 UTC
The order of dialog buttons varies from platform to platform. We cannot influence that from within our code; it's up to Qt to decide which order to use on which platform.
Comment 4 Alvin Wong 2022-12-13 08:23:59 UTC
See https://doc.qt.io/qt-5/qdialogbuttonbox.html#details