diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2010-06-09 22:05:07 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2010-06-09 22:08:34 (GMT) |
commit | 1abf2d6dfafc71f73746b7e69e11e0c8152edb4a (patch) | |
tree | e6aa5b8a0654c53efd8f9ca87b91a7cd508fdf41 /src/corelib/tools/qlocale.cpp | |
parent | da603c7c80ea14df18790ae77f5de82880307650 (diff) | |
download | Qt-1abf2d6dfafc71f73746b7e69e11e0c8152edb4a.zip Qt-1abf2d6dfafc71f73746b7e69e11e0c8152edb4a.tar.gz Qt-1abf2d6dfafc71f73746b7e69e11e0c8152edb4a.tar.bz2 |
Rename QLocale::isWrittenRightToLeft() to textDirection()
This is more in line with the rest of Qt.
Reviewed-by: Simon Hausmann
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; } |