[Pkg-owncloud-commits] [owncloud-client] 72/171: Work around layouting issue for RTL languages
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit cede7ec9712a9cc0a2bac59bad4702c0b1d057b2
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Wed Jan 6 12:51:25 2016 +0100
Work around layouting issue for RTL languages
This has been fixed in the meanwhile, but we are still shipping
with Qt 5.4. Also, some Linux Distros will still have older Qt
versions.
Addresses issue #4301
---
src/gui/application.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index f347020..301856e 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -570,6 +570,10 @@ void Application::setupTranslations()
if (property("ui_lang").isNull())
setProperty("ui_lang", "C");
}
+// Work around Qt 5 < 5.5.0 regression, see https://bugreports.qt.io/browse/QTBUG-43447
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) && QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
+ setLayoutDirection(QApplication::tr("QT_LAYOUT_DIRECTION") == QLatin1String("RTL") ? Qt::RightToLeft : Qt::LeftToRight);
+#endif
}
bool Application::giveHelp()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list