diff --git a/langcoder.cc b/langcoder.cc index 6c3276bf7..a62e30092 100644 --- a/langcoder.cc +++ b/langcoder.cc @@ -357,7 +357,13 @@ bool LangCoder::isLanguageRTL( quint32 code ) { LangCode &lc = LangCodes[ langCoder.codeMap[ code ] ]; if( lc.isRTL < 0 ) + { +#if QT_VERSION >= 0x040700 lc.isRTL = ( int )( QLocale( lc.code ).textDirection() == Qt::RightToLeft ); +#else + lc.isRTL = 0; +#endif + } return lc.isRTL != 0; }