rpms/kdemultimedia/devel kdemultimedia-4.0.3-kmix-systray.patch, NONE, 1.1

Lukas Tinkl (ltinkl) fedora-extras-commits at redhat.com
Tue Apr 1 15:38:16 UTC 2008


Author: ltinkl

Update of /cvs/extras/rpms/kdemultimedia/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24786

Added Files:
	kdemultimedia-4.0.3-kmix-systray.patch 
Log Message:
add the actual patch


kdemultimedia-4.0.3-kmix-systray.patch:

--- NEW FILE kdemultimedia-4.0.3-kmix-systray.patch ---
--- kdemultimedia/kmix/kmixdockwidget.cpp	2008/03/31 19:01:21	792277
+++ kdemultimedia/kmix/kmixdockwidget.cpp	2008/03/31 19:03:01	792278
@@ -296,12 +296,7 @@
       event->accept();
       return true;
    }
-//    else if (event->type() == QEvent::ToolTip ) {
-//       trayToolTipEvent((QHelpEvent*)event);
-//       event->accept();
-//       return true;
-//    }
-   return false;
+   return QSystemTrayIcon::event(event);
 }
 
 
@@ -344,12 +339,10 @@
       else
          md->captureVolume().setVolume(vol);
       m_mixer->commitVolumeChange(md);
-    // refresh the toolTip (Qt removes it on a MouseWheel event)
-    // Mhhh, it doesn't work. Qt does not show it again.
     setVolumeTip();
     // Simulate a mouse move to make Qt show the tooltip again
-    //QApplication::postEvent( this, new QMouseEvent( QEvent::MouseMove, QCursor::pos(), Qt::NoButton, Qt::NoButton ) );
-
+    // (Qt removes it on a MouseWheel event)
+    QApplication::postEvent( this, new QHelpEvent ( QEvent::ToolTip, e->pos(), e->globalPos() ) );
   }
 }
 




More information about the fedora-extras-commits mailing list