Browse files

Add Twitter names to AboutDialog

git-svn-id: svn+ssh://svn.last.fm/svn/clientside/trunk/desktop@123310 ab8f4a45-97f9-0310-bbd1-854ce3dcee89
  • Loading branch information...
1 parent eb3f553 commit 0c61627192b44fbe4c58e609e53e8d004cb08623 @mxcl mxcl committed Mar 6, 2009
Showing with 17 additions and 5 deletions.
  1. +1 −0 app/boffin/MediaPipeline.cpp
  2. +16 −5 lib/unicorn/widgets/AboutDialog.cpp
View
1 app/boffin/MediaPipeline.cpp
@@ -234,6 +234,7 @@ MediaPipeline::onPhononStateChanged( Phonon::State newstate, Phonon::State oldst
break;
case ErrorState:
+ qWarning() << mo->errorString();
// need to request a stop to clear the error state before we trying to play the next track
m_errorRecover = true;
mo->stop();
View
21 lib/unicorn/widgets/AboutDialog.cpp
@@ -36,13 +36,24 @@ static inline QLabel* label( const QString& text, Qt::WidgetAttribute size = Qt:
AboutDialog::AboutDialog( QWidget* parent )
: QDialog( parent )
{
- const char* authors = "Max Howell <max@last.fm>\n"
- "Jono Cole <jono@last.fm>\n"
- "Doug Mansell <doug@last.fm>\n"
- "Matt Brown <mattb@last.fm>";
QLabel* lauthors;
Q_ASSERT( qApp->applicationVersion().size() );
+
+ QStringList authors, raw_authors;
+ raw_authors << "Max Howell" << "mxcl" << "max@last.fm"
+ << "Jono Cole" << "jonocole" << "jono@last.fm"
+ << "Doug Mansell" << "dougma" << "doug@last.fm"
+ << "Matt Brown" << "irvinebrown" << "mattb@last.fm";
+ QStringListIterator i( raw_authors );
+ while(i.hasNext()) {
+ QString name = i.next();
+ QString twit = i.next();
+ QString mail = i.next();
+ authors << "&lt;<a href='mailto:" + mail + "'>" + mail + "</a>&gt; "
+ + name + ' '
+ + "<a href='http://twitter.com/" + twit + "'>@" + twit + "</a>";
+ }
QVBoxLayout* v = new QVBoxLayout( this );
v->addWidget( new QLabel( "<b>" + qApp->applicationName() ) );
@@ -53,7 +64,7 @@ AboutDialog::AboutDialog( QWidget* parent )
v->addSpacing( 10 );
v->addWidget( label( QString::fromUtf8("Copyright © 2005-2009 Last.fm Ltd.") ) );
v->addSpacing( 10 );
- v->addWidget( lauthors = label( authors, Qt::WA_MacMiniSize ) );
+ v->addWidget( lauthors = label( authors.join( "<br>" ), Qt::WA_MacMiniSize ) );
v->setSizeConstraint( QLayout::SetFixedSize );
v->setSpacing( 2 );

0 comments on commit 0c61627

Please sign in to comment.