summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-03-13 02:48:46 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-03-13 02:48:46 (GMT)
commitc34216cf8a265b617d4422d772187e38e57647ba (patch)
tree0173335edcb16e75368919d1dea18765a724fe67 /Source/QtDialog
parent649789a736bb217f818696eae36ee6e6a2e1aa61 (diff)
downloadCMake-c34216cf8a265b617d4422d772187e38e57647ba.zip
CMake-c34216cf8a265b617d4422d772187e38e57647ba.tar.gz
CMake-c34216cf8a265b617d4422d772187e38e57647ba.tar.bz2
cmake-gui: Fix compile with Qt5 using UTF-8 internal encoding.
Because we already call [to|from]Local8Bit() with C strings where we are supposed to, we do not need to specify UTF-8 encoding when converting C strings to QString.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 995929e..1b04a00 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -81,9 +81,7 @@ int main(int argc, char** argv)
#if defined(KWSYS_CP_UTF8)
QTextCodec* utf8_codec = QTextCodec::codecForName("UTF-8");
- QTextCodec::setCodecForCStrings(utf8_codec);
QTextCodec::setCodecForLocale(utf8_codec);
- QTextCodec::setCodecForTr(utf8_codec);
#endif
// clean out standard Qt paths for plugins, which we don't use anyway