<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Arial'; font-size:11pt; font-weight:400; font-style:normal;">On Sunday 18 January 2009 12:52:58 Toussis Manolis wrote:<br>
> After some messing around I used mouseDoubleClickedEvent()<br>
> as it is not used by plasma...as a workaround<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>and the strange thing is the double click doesn't work without your code... :-)<br>
If I remove mousepressEvent , doubleClickEvent does not occur....<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>void PlasmaTvGr::mousePressEvent ( QGraphicsSceneMouseEvent * event )<br>
{<br>
        if(signalsBlocked()) <br>
        {<br>
                Plasma::Applet::mousePressEvent(event);<br>
                return;<br>
        };<br>
        if(event->button()==Qt::LeftButton)<br>
        {<br>
        }else Plasma::Applet::mousePressEvent(event);<br>
};<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>void PlasmaTvGr::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event )<br>
{<br>
        execMenu();<br>
};<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>