Skip to content

Commit

Permalink
Fixed a build failure with Qt 4.6 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
Tvangeste committed Jul 17, 2013
1 parent 7d8ce12 commit 4980ffc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions langcoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4980ffc

Please sign in to comment.