Commit e9518c4f authored by Michael Pyne's avatar Michael Pyne

Grant wish 65098. Now moving the mouse into the track announcement popup will keep it open.

The popup will still eventually close due to shortcomings of QTimer and KPassivePopup however.

Also, moving the mouse outside of the popup will force it to close quickly.

svn path=/trunk/kdemultimedia/juk/; revision=314979
parent 5ccc9156
......@@ -39,6 +39,24 @@ using namespace ActionCollection;
static bool copyImage(QImage &dest, QImage &src, int x, int y);
class PassiveInfo : public KPassivePopup
PassiveInfo(QWidget *parent = 0, const char *name = 0) :
KPassivePopup(parent, name) {}
virtual void enterEvent(QEvent *)
setTimeout(3000000); // Make timeout damn near infinite
virtual void leaveEvent(QEvent *)
setTimeout(250); // Close quickly
// public methods
......@@ -120,7 +138,7 @@ void SystemTray::createPopup(bool addButtons)
if(action<KToggleAction>("togglePopups")->isChecked()) {
delete m_popup;
m_popup = new KPassivePopup(this);
m_popup = new PassiveInfo(this);
QHBox *box = new QHBox(m_popup);
box->setSpacing(15); // Add space between text and buttons
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment