mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
eb97426c76
commit
e28f8225f5
3 changed files with 22 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0" >
|
<ui version="4.0" >
|
||||||
<class>aboutBox</class>
|
<class>aboutBox</class>
|
||||||
<widget class="QWidget" name="aboutBox" >
|
<widget class="QWidget" name="aboutBox" >
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap" >
|
<property name="pixmap" >
|
||||||
<pixmap resource="rbutilqt.qrc" >:/icons/rockbox-5.png</pixmap>
|
<pixmap>:/icons/rockbox-5.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
<item row="1" column="0" colspan="3" >
|
<item row="1" column="0" colspan="3" >
|
||||||
<widget class="QLabel" name="labelText" >
|
<widget class="QLabel" name="labelText" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Installer and housekeeping utility for the Rockbox open source digital audio player firmware.<br/>© 2005 - 2011 The Rockbox Team.<br/>Released under the GNU General Public License v2.<br/>Uses icons by the <a href="http://tango.freedesktop.org/">Tango Project</a>.<br/><center><a href="http://www.rockbox.org">http://www.rockbox.org</a></center></string>
|
<string>Installer and housekeeping utility for the Rockbox open source digital audio player firmware.<br/>© 2005 - 2011 The Rockbox Team.<br/>Released under the GNU General Public License v2.<br/>Uses icons by the <a href="http://tango.freedesktop.org/">Tango Project</a>.<br/><center><a href="http://www.rockbox.org">http://www.rockbox.org</a></center></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textFormat" >
|
<property name="textFormat" >
|
||||||
<enum>Qt::RichText</enum>
|
<enum>Qt::RichText</enum>
|
||||||
|
@ -126,6 +127,16 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QWidget" name="licenseSpeex">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&Speex License</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QTextBrowser" name="browserSpeexLicense"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0" >
|
||||||
|
|
|
@ -293,9 +293,15 @@ void RbUtilQt::about()
|
||||||
QFile licence(":/docs/gpl-2.0.html");
|
QFile licence(":/docs/gpl-2.0.html");
|
||||||
licence.open(QIODevice::ReadOnly);
|
licence.open(QIODevice::ReadOnly);
|
||||||
QTextStream c(&licence);
|
QTextStream c(&licence);
|
||||||
QString cline = c.readAll();
|
about.browserLicense->insertHtml(c.readAll());
|
||||||
about.browserLicense->insertHtml(cline);
|
|
||||||
about.browserLicense->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
|
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");
|
QFile credits(":/docs/CREDITS");
|
||||||
credits.open(QIODevice::ReadOnly);
|
credits.open(QIODevice::ReadOnly);
|
||||||
QTextStream r(&credits);
|
QTextStream r(&credits);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>../../docs/CREDITS</file>
|
<file>../../docs/CREDITS</file>
|
||||||
<file>../../docs/gpl-2.0.html</file>
|
<file>../../docs/gpl-2.0.html</file>
|
||||||
|
<file alias="docs/COPYING.SPEEX">../../apps/codecs/libspeex/COPYING</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource>
|
<qresource>
|
||||||
<file alias="builtin/VOICE_PAUSE.wav">../../tools/VOICE_PAUSE.wav</file>
|
<file alias="builtin/VOICE_PAUSE.wav">../../tools/VOICE_PAUSE.wav</file>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue