diff options
Diffstat (limited to 'src/corelib/tools/qlocale.cpp')
-rw-r--r-- | src/corelib/tools/qlocale.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp index 8f50f2e..a51ee81 100644 --- a/src/corelib/tools/qlocale.cpp +++ b/src/corelib/tools/qlocale.cpp @@ -3480,9 +3480,9 @@ QLocale::MeasurementSystem QLocale::measurementSystem() const /*! \since 4.7 - Returns true if the language is written right to left. + Returns the text direction of the language. */ -bool QLocale::isWrittenRightToLeft() const +Qt::LayoutDirection QLocale::textDirection() const { Language lang = language(); if (lang == QLocale::Arabic || @@ -3490,9 +3490,9 @@ bool QLocale::isWrittenRightToLeft() const lang == QLocale::Persian || lang == QLocale::Urdu || lang == QLocale::Syriac) - return true; + return Qt::RightToLeft; - return false; + return Qt::LeftToRight; } |