diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-12 22:54:22 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-12 22:54:22 +0100 |
commit | 0372a52e39634fae60fd72dc3323647d7e06c630 (patch) | |
tree | 918b7bc4156523b1ebdf3a4b56ca6e228703e31f /rbutil/rbutilqt/gui | |
parent | 17a781d8b25c371b5a723f139b95380eefad85b1 (diff) | |
download | rockbox-0372a52e39634fae60fd72dc3323647d7e06c630.tar.gz rockbox-0372a52e39634fae60fd72dc3323647d7e06c630.zip |
Add missing entry to changelog.
Add a missing entry and treat changelog file always as UTF-8.
Change-Id: I847c399ddf6d8aacf155864fbd9109121a761bc5
Diffstat (limited to 'rbutil/rbutilqt/gui')
-rw-r--r-- | rbutil/rbutilqt/gui/changelog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/changelog.cpp b/rbutil/rbutilqt/gui/changelog.cpp index 4ef1ae9266..1de272315d 100644 --- a/rbutil/rbutilqt/gui/changelog.cpp +++ b/rbutil/rbutilqt/gui/changelog.cpp | |||
@@ -24,6 +24,7 @@ Changelog::Changelog(QWidget *parent) : QDialog(parent) | |||
24 | { | 24 | { |
25 | ui.setupUi(this); | 25 | ui.setupUi(this); |
26 | ui.browserChangelog->setOpenExternalLinks(true); | 26 | ui.browserChangelog->setOpenExternalLinks(true); |
27 | // FIXME: support translated changelog file (changelog.de.txt etc) | ||
27 | ui.browserChangelog->setHtml(parseChangelogFile(":/docs/changelog.txt")); | 28 | ui.browserChangelog->setHtml(parseChangelogFile(":/docs/changelog.txt")); |
28 | ui.browserChangelog->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); | 29 | ui.browserChangelog->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); |
29 | ui.checkBoxShowAlways->setChecked(RbSettings::value(RbSettings::ShowChangelog).toBool()); | 30 | ui.checkBoxShowAlways->setChecked(RbSettings::value(RbSettings::ShowChangelog).toBool()); |
@@ -44,6 +45,7 @@ QString Changelog::parseChangelogFile(QString filename) | |||
44 | QFile changelog(filename); | 45 | QFile changelog(filename); |
45 | changelog.open(QIODevice::ReadOnly); | 46 | changelog.open(QIODevice::ReadOnly); |
46 | QTextStream c(&changelog); | 47 | QTextStream c(&changelog); |
48 | c.setCodec(QTextCodec::codecForName("UTF-8")); | ||
47 | QString text; | 49 | QString text; |
48 | while(!c.atEnd()) { | 50 | while(!c.atEnd()) { |
49 | QString line = c.readLine(); | 51 | QString line = c.readLine(); |