signal clicked()
Toussis Manolis
manolis at koppermind.homelinux.org
Sun Jan 18 12:26:11 CET 2009
On Sunday 18 January 2009 12:52:58 Toussis Manolis wrote:
> After some messing around I used mouseDoubleClickedEvent()
> as it is not used by plasma...as a workaround
and the strange thing is the double click doesn't work without your code...
:-)
If I remove mousepressEvent , doubleClickEvent does not occur....
void PlasmaTvGr::mousePressEvent ( QGraphicsSceneMouseEvent * event )
{
if(signalsBlocked())
{
Plasma::Applet::mousePressEvent(event);
return;
};
if(event->button()==Qt::LeftButton)
{
}else Plasma::Applet::mousePressEvent(event);
};
void PlasmaTvGr::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event )
{
execMenu();
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090118/48574b9f/attachment.htm
More information about the Plasma-devel
mailing list