Make linguist's source viewer respect the encoding of files.
authorMitch Curtis <mitch.curtis@digia.com>
Wed, 17 Apr 2013 10:45:24 +0000 (12:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 18 Apr 2013 15:22:17 +0000 (17:22 +0200)
commit6626e5f41712723405c110a4f11ad650116f7523
treea8f28aab50b73091a7f6aa8314d5692e42cfb241
parent7d9f5d1925cdc03a7fd1293fd02bf0cf72191867
Make linguist's source viewer respect the encoding of files.

It currently loads source files as latin1, which means other encodings
are not supported.

Qt 5 change: c4f1ac0fbcd452f440aee4a3304574cb7fbca0ce

Task-number: QTBUG-27238

Change-Id: Ieb4de351d93bd5ac2939692c5c53bd681fea4386
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
tools/linguist/linguist/mainwindow.cpp
tools/linguist/linguist/messagemodel.h
tools/linguist/linguist/sourcecodeview.cpp
tools/linguist/linguist/sourcecodeview.h