Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def guidance-power-manager::SystemTrayIcon::event (   self,
  event 
)

overloaded to pick up tooltip events and show our widget
    would be nice to hide it when the mouse leaves but systemtrayicons
    don't get that event so use a timer 

Definition at line 1093 of file guidance-power-manager.py.

01093                           :
        """ overloaded to pick up tooltip events and show our widget
            would be nice to hide it when the mouse leaves but systemtrayicons
            don't get that event so use a timer """
        if event.type() == QEvent.ToolTip:
            self.toolTip.show()
            x = self.geometry().x() - self.toolTip.width()
            y = self.geometry().y() - self.toolTip.height()
            self.toolTip.move(x, y)
            QTimer.singleShot(3000, self.hideToolTip)
            return True
        else:
            return KSystemTrayIcon.event(self, event)

    def hideToolTip(self):


Generated by  Doxygen 1.6.0   Back to index