[Qt-creator] Plugin: open bugtracker links from comments
Coda Highland
coda at bobandgeorge.com
Thu Feb 4 18:31:39 CET 2010
2010/2/4 Thorbjørn Lindeijer <thorbjorn.lindeijer at nokia.com>:
> 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.
As a suggestion: Would it be more feasible, then, to add a new item to
the right-click menu on these links? I think I'd prefer that over a
left-click behavior anyway.
/s/ Adam
More information about the Qt-creator-old
mailing list