|
From: Tapio V. <aa...@us...> - 2011-02-07 07:19:24
|
Module: editor
Branch: master
Commit: ee92688622ef18d60c4bbe08a81e131feeefe675
Author: Tapio Vierros <tap...@gm...>
Date: Mon Feb 7 08:59:03 2011 +0200
Use proper codec when reading our resource text files.
---
editorapp.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/editorapp.cc b/editorapp.cc
index 7c6531c..77bc47d 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -665,6 +665,7 @@ AboutDialog::AboutDialog(QWidget* parent)
QFile f(":/docs/Authors.txt");
f.open(QIODevice::ReadOnly);
QTextStream in(&f);
+ in.setCodec("UTF-8");
txtAuthors->setPlainText(in.readAll());
}
// Poplate License text
@@ -672,6 +673,7 @@ AboutDialog::AboutDialog(QWidget* parent)
QFile f(":/docs/License.txt");
f.open(QIODevice::ReadOnly);
QTextStream in(&f);
+ in.setCodec("UTF-8");
txtLicense->setPlainText(in.readAll());
}
|