2010/2/4 Thorbjørn Lindeijer <[email protected]>: > 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 _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
