Hi Bjørn,

> BaseTextEditor supports extra selections which you can use to
> highlight
> certain parts of the text. This is used for the highlighting
> of unused
> variables, the links and marking of warnings/errors.

Thanks for this hint. I was able to highlight our Bugtracker comments using the 
QTextEdit::ExtraSelections!

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.

Thanks,
Markus

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to