From cb4821802897bbf6e06be3b2608656e05db68b96 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 10 Nov 2002 16:03:09 +0000 Subject: display loaded playlist in caption at start --- (limited to 'noncore') 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 @@ -62,7 +62,10 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name ) volControl = new VolumeControl; 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() ); } MediaPlayer::~MediaPlayer() { -- cgit v0.9.0.2