[Qt-creator] Plugin: open bugtracker links from comments

Thorbjørn Lindeijer thorbjorn.lindeijer at nokia.com
Thu Feb 4 17:24:34 CET 2010


On 02/04/2010 03:26 PM, ext Liebe Markus (RtP2/TEF72) wrote:
> Now I need to somehow get a trigger that somebody clicked with the mouse on the Link.
> Normally I would do this by writing my own ::mousePressEvent(QMouseEvent *e) function. But in this case I cannot do that because I am not implementing an own BaseTextEditor but instead another plugin.
>
> The only thing that I can use to work with in my plugin is a Pointer to an BaseTextEditor.
> Do you have any idea how I can get the mousePressEvent from there? Sadly there are no signals containing the desired information in BaseTextEditor or its base classes.

There is currently no way, as I said this will require some refactoring 
in the way the links are added.

Specifically, there would need to be an interface that can be 
implemented by plugins to add new types of links and that has a method 
that is called when the link is clicked.

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Development Frameworks



More information about the Qt-creator-old mailing list