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 | |
parent | ee6938139a5f8f24da901ab5a41930a98af00d44 (diff) | |
download | opie-cb4821802897bbf6e06be3b2608656e05db68b96.zip opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.gz opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.bz2 |
display loaded playlist in caption at start
-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 @@ -59,13 +59,16 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name ) connect( videoUI, SIGNAL( lessClicked() ), this, SLOT( startDecreasingVolume() ) ); connect( videoUI, SIGNAL( moreReleased() ), this, SLOT( stopChangingVolume() ) ); connect( videoUI, SIGNAL( lessReleased() ), this, SLOT( stopChangingVolume() ) ); 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() { delete xineControl; delete volControl; } |