Commit 7b227286 authored by Scott Wheeler's avatar Scott Wheeler

Make the tooltip and track announcement popups work again.

svn path=/trunk/kdemultimedia/juk/; revision=304711
parent 917ea441
......@@ -147,6 +147,11 @@ int PlayerManager::position() const
return player()->position();
}
FileHandle PlayerManager::playingFile() const
{
return m_file;
}
QString PlayerManager::playingString() const
{
if(!playing())
......
......@@ -51,6 +51,7 @@ public:
int currentTime() const;
int position() const;
FileHandle playingFile() const;
QString playingString() const;
void setPlaylistInterface(PlaylistInterface *interface);
......
......@@ -85,6 +85,13 @@ SystemTray::~SystemTray()
// public slots
////////////////////////////////////////////////////////////////////////////////
void SystemTray::slotPlay()
{
setPixmap(m_playPix);
setToolTip(PlayerManager::instance()->playingString());
createPopup(PlayerManager::instance()->playingString());
}
void SystemTray::slotStop()
{
setPixmap(m_appPix);
......
......@@ -39,7 +39,7 @@ private:
QPixmap createPixmap(const QString &pixName);
private slots:
void slotPlay() { setPixmap(m_playPix); }
void slotPlay();
void slotPause() { setPixmap(m_pausePix); }
void slotStop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment