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
This commit is contained in:
Dominik Riebeling 2011-10-21 19:46:36 +00:00
parent eb97426c76
commit e28f8225f5
3 changed files with 22 additions and 4 deletions

View file

@ -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);