Commit dc235159 authored by Scott Wheeler's avatar Scott Wheeler

Make it possible to redisplay the popup via keybindings or DCOP.

81969-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=316196
parent bbb778f4
......@@ -78,6 +78,11 @@ SystemTray::SystemTray(QWidget *parent, const char *name) : KSystemTray(parent,
setToolTip();
// Just create this here so that it show up in the DCOP interface and the key
// bindings dialog.
new KAction(i18n("Redisplay Popup"), KShortcut(), this, SLOT(slotPlay()), actions(), "showPopup");
KPopupMenu *cm = contextMenu();
connect(PlayerManager::instance(), SIGNAL(signalPlay()), this, SLOT(slotPlay()));
......@@ -112,6 +117,9 @@ SystemTray::~SystemTray()
void SystemTray::slotPlay()
{
if(!PlayerManager::instance()->playing())
return;
setPixmap(m_playPix);
setToolTip(PlayerManager::instance()->playingString());
createPopup();
......
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