qt5base-lts/tests/auto/other
Jan Arve Saether 49af548abb Fix regression from Qt4 with layout direction
In Qt4, if the result of the translation

 QApplication::translate("QT_LAYOUT_DIRECTION")

returned "RTL", Qt usually called

 QApplication::setLayoutDirection(Qt::RightToLeft)

in order for a translation file to specify if the UI should be
left-to-right or right-to-left.

However, due to modularization, we could no longer call
QApplication::translate(), so the code was wrongly changed to call

 QCoreApplication::translate(....) instead.

This was wrong, and in addition the translation files was never updated
with the new context.

This patch fixes it to only translate it with the QGuiApplication context.
This is the only sensible context, since QApplication would lack QtQuick
support, and QCoreApplication would not know how to change layout
direction.

[ChangeLog][QtGui][i18n] Fixed bug where layout direction did not switch
according to the instruction in the translation file.

Task-number: QTBUG-43447
Change-Id: Id0409a42d41b3b9ff1cd53d090c4d9c9802f5659
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-02-05 14:27:22 +00:00
..
android Android: Don't open assets files in read/write mode 2015-01-28 12:20:54 +00:00
atwrapper Update license headers and add new license files 2014-09-24 12:26:19 +02:00
baselineexample Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compiler Gcc 4.5.* build fix. 2014-10-10 13:20:30 +02:00
gestures Update license headers and add new license files 2014-09-24 12:26:19 +02:00
headersclean headersclean: process private modules correctly 2013-07-03 15:31:13 +02:00
lancelot Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
languagechange Fix regression from Qt4 with layout direction 2015-02-05 14:27:22 +00:00
macgui Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macnativeevents Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macplist Update license headers and add new license files 2014-09-24 12:26:19 +02:00
modeltest Update license headers and add new license files 2014-09-24 12:26:19 +02:00
networkselftest Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qaccessibility Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
qaccessibilitylinux Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qaccessibilitymac Fix qaccessibilitymac test (title vs. description) 2015-01-17 09:58:14 +01:00
qcomplextext Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qfocusevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnetworkaccessmanager_and_qprogressdialog Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qobjectperformance Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qobjectrace Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qprocess_and_guieventloop Merge remote-tracking branch 'origin/5.4' into dev 2015-01-21 11:10:14 +01:00
qsharedpointer_and_qwidget Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtokenautomaton Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qvariant_common Update license headers and add new license files 2014-09-24 12:26:19 +02:00
toolsupport QIODevice: remove ineffective caching members 2015-01-20 10:37:59 +01:00
windowsmobile Update license headers and add new license files 2014-09-24 12:26:19 +02:00
other.pro Android: Don't open assets files in read/write mode 2015-01-28 12:20:54 +00:00