Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set the layout direction if changing the locale #8981

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

TheOneRing
Copy link
Member

@TheOneRing TheOneRing commented Sep 7, 2021

Can you see side effects of the patch?
The issue does not occur with Qt 5.15 so maybe I should ifdef it
Fixes: #8806

@TheOneRing TheOneRing requested a review from a team September 7, 2021 13:32
@TheOneRing TheOneRing changed the base branch from master to 2.9 September 7, 2021 13:32
@@ -758,6 +758,8 @@ void Application::setupTranslations()
QLocale newLocale(lang);
qCDebug(lcApplication) << "language" << lang << "was enforced, changing default locale to" << newLocale;
QLocale::setDefault(newLocale);
// setting the layout direction directly only appears to be needed on mac
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IF this doesn't occur on 5.15, then I'd put it in an if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) statement.

@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the language selector to select an RTL language on mac does not cause the ui to be reversed
2 participants