From 73817538b2638e1105c7dfba892d54752cb777a5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 30 Nov 2008 22:02:21 +0000 Subject: fixed shaded playlist title git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@649 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/playlist.cpp | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'src/ui/playlist.cpp') diff --git a/src/ui/playlist.cpp b/src/ui/playlist.cpp index f4490fbec..42d560b2d 100644 --- a/src/ui/playlist.cpp +++ b/src/ui/playlist.cpp @@ -469,29 +469,17 @@ void PlayList::setTime(qint64 time) } } -//void PlayList::setInfo (const OutputState &st,int length_current, int length_total) -//{ -/*if (st.type() == OutputState::Info) -{ - m_current_time->display (formatTime (st.elapsedSeconds())); - m_current_time->update(); - QString str_length = formatTime (length_current) + "/" + formatTime (length_total); - m_length_totalLength->display (str_length); - m_length_totalLength->update(); -} -else if (st.type() == OutputState::Playing) +void PlayList::updateList() { - m_listWidget->updateList(); //removes progress message from TextScroller -}*/ -//} + m_listWidget->updateList(); + m_titleBar->showCurrent(); +} + PlayListItem *PlayList::currentItem() { - if (m_playListModel) - return m_playListModel->currentItem(); - else - return 0; + return m_playListModel ? m_playListModel->currentItem() : 0; } void PlayList::showPlaylistMenu() -- cgit v1.2.3-13-gbd6f