--- a/mpviewplugins/mpplaybackviewplugin/src/mpplaybackwidget.cpp Wed Aug 18 09:46:20 2010 +0300
+++ b/mpviewplugins/mpplaybackviewplugin/src/mpplaybackwidget.cpp Thu Sep 02 20:24:03 2010 +0300
@@ -84,7 +84,6 @@
mAlbumArt->setDefaultIcon( HbIcon( "qtg_large_album_art" ) );
tmpWidgetPtr = mDocumentLoader->findWidget(QString("realAudio"));
mRealAudioIndicator = qobject_cast<HbLabel*>(tmpWidgetPtr);
- mRealAudioIndicator->hide();
tmpWidgetPtr = mDocumentLoader->findWidget(QString("repeatIcon"));
mRepeatIndicator = qobject_cast<HbLabel*>(tmpWidgetPtr);
@@ -142,9 +141,25 @@
void MpPlaybackWidget::playbackInfoChanged( )
{
TX_ENTRY
+ //Title
mSongTitle->setPlainText( mPlaybackData->title() );
- mArtistName->setPlainText( mPlaybackData->artist() );
- mAlbumName->setPlainText( mPlaybackData->album() );
+ // Artist
+ QString data = mPlaybackData->artist();
+ if ( !data.isEmpty() ) {
+ mArtistName->setPlainText( data );
+ }
+ else {
+ mArtistName->setPlainText( hbTrId( "txt_mus_other_unknown3" ) );
+ }
+ // Album
+ data = mPlaybackData->album();
+ if ( !data.isEmpty() ) {
+ mAlbumName->setPlainText( data );
+ }
+ else {
+ mAlbumName->setPlainText( hbTrId( "txt_mus_other_unknown4" ) );
+ }
+ // RealAudioIcon
mRealAudioIndicator->setVisible( mPlaybackData->realAudio() );
emit signalPlaybackInfoChanged();
TX_EXIT