summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-24 20:48:38 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-24 20:48:38 +0000
commit0f6bfdb4c37f222ea2833237bc9946d752e211db (patch)
tree76b3dea10753a6f676a7ce1b7b3972f129de6466 /rbutil/rbutilqt/rbutilqt.cpp
parent2910f91804d870e031bed28ad0d94a0d2c419d4c (diff)
downloadrockbox-0f6bfdb4c37f222ea2833237bc9946d752e211db.tar.gz
rockbox-0f6bfdb4c37f222ea2833237bc9946d752e211db.tar.bz2
rockbox-0f6bfdb4c37f222ea2833237bc9946d752e211db.zip
Merge rbutil CREDITS file with main one and use that.
Similar to removing the separate CREDITS file for the manual remove the rbutil one as discussed on IRC. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 85d990a775..8997c386bf 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -287,8 +287,13 @@ void RbUtilQt::about()
credits.open(QIODevice::ReadOnly);
QTextStream r(&credits);
r.setCodec(QTextCodec::codecForName("UTF-8"));
- QString rline = r.readAll();
- about.browserCredits->insertPlainText(rline);
+ while(!r.atEnd()) {
+ QString line = r.readLine();
+ // filter out header.
+ line.remove(QRegExp("^[^A-Z]+.*"));
+ line.remove(QRegExp("^People.*"));
+ about.browserCredits->append(line);
+ }
about.browserCredits->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
QString title = QString("<b>The Rockbox Utility</b><br/>Version %1").arg(FULLVERSION);
about.labelTitle->setText(title);