From 8b6b6918b8d46ca5133c130c618898ac32b480fb Mon Sep 17 00:00:00 2001 From: Abs62 Date: Wed, 18 Dec 2013 19:29:25 +0400 Subject: [PATCH] Don't use function removed in Qt5 --- loaddictionaries.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loaddictionaries.cc b/loaddictionaries.cc index 206d7f32..50a3f111 100644 --- a/loaddictionaries.cc +++ b/loaddictionaries.cc @@ -325,7 +325,9 @@ void loadDictionaries( QWidget * parent, bool showInitially, set< string > ids; std::pair< std::set< string >::iterator, bool > ret; +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) QTextCodec::setCodecForCStrings( QTextCodec::codecForName( "UTF8" ) ); +#endif for( unsigned x = dictionaries.size(); x--; ) {