author | llornkcor <llornkcor> | 2002-11-10 16:03:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 16:03:09 (UTC) |
commit | cb4821802897bbf6e06be3b2608656e05db68b96 (patch) (side-by-side diff) | |
tree | 672351f10dfb9a6bd13f753d876c975a39b74270 /noncore/multimedia/opieplayer2 | |
parent | ee6938139a5f8f24da901ab5a41930a98af00d44 (diff) | |
download | opie-cb4821802897bbf6e06be3b2608656e05db68b96.zip opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.gz opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.bz2 |
display loaded playlist in caption at start
Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 8b0f501..1f19b30 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp @@ -64,3 +64,6 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name ) xineControl = new XineControl(); - playList->setCaption(tr("OpiePlayer")); + Config cfg( "OpiePlayer" ); + cfg.setGroup("PlayList"); + QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default"); + playList->setCaption( tr( "OpiePlayer: " ) + QFileInfo(currentPlaylist).baseName() ); } |