summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-21 19:46:36 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-21 19:46:36 +0000
commite28f8225f5ba270f840b6eb5c0253a0ec50de4b7 (patch)
tree6c2755007bc45f96e12bef9036cbf19905a66891 /rbutil/rbutilqt/rbutilqt.cpp
parenteb97426c76a0716fbc26e0581ccaaad2426d5c04 (diff)
downloadrockbox-e28f8225f5ba270f840b6eb5c0253a0ec50de4b7.tar.gz
rockbox-e28f8225f5ba270f840b6eb5c0253a0ec50de4b7.tar.bz2
rockbox-e28f8225f5ba270f840b6eb5c0253a0ec50de4b7.zip
Rockbox Utility: add Speex license to About dialog.
The Speex codec has a special license requiring it to be reproduced with any distribution. Add the license as a separate tab in the About dialog to satisfy this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 47955c93fc..70b7e5fa47 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -293,9 +293,15 @@ void RbUtilQt::about()
QFile licence(":/docs/gpl-2.0.html");
licence.open(QIODevice::ReadOnly);
QTextStream c(&licence);
- QString cline = c.readAll();
- about.browserLicense->insertHtml(cline);
+ about.browserLicense->insertHtml(c.readAll());
about.browserLicense->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
+
+ QFile speexlicense(":/docs/COPYING.SPEEX");
+ speexlicense.open(QIODevice::ReadOnly);
+ QTextStream s(&speexlicense);
+ about.browserSpeexLicense->insertHtml("<pre>" + s.readAll() + "</pre>");
+ about.browserSpeexLicense->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
+
QFile credits(":/docs/CREDITS");
credits.open(QIODevice::ReadOnly);
QTextStream r(&credits);