author | llornkcor <llornkcor> | 2002-11-10 16:03:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 16:03:09 (UTC) |
commit | cb4821802897bbf6e06be3b2608656e05db68b96 (patch) (unidiff) | |
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 | |||
@@ -62,7 +62,10 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name ) | |||
62 | 62 | ||
63 | volControl = new VolumeControl; | 63 | volControl = new VolumeControl; |
64 | xineControl = new XineControl(); | 64 | xineControl = new XineControl(); |
65 | playList->setCaption(tr("OpiePlayer")); | 65 | Config cfg( "OpiePlayer" ); |
66 | cfg.setGroup("PlayList"); | ||
67 | QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default"); | ||
68 | playList->setCaption( tr( "OpiePlayer: " ) + QFileInfo(currentPlaylist).baseName() ); | ||
66 | } | 69 | } |
67 | 70 | ||
68 | MediaPlayer::~MediaPlayer() { | 71 | MediaPlayer::~MediaPlayer() { |