ext Liebe Markus (RtP2/TEF72) wrote: > Hi, > > In a plugin in that I develop I introduced another mode (mode like > "welcome mode", "editor mode", …) This mode basically shows our > bugtracker webinterface in a QWebView. > Now I want to highlight several keywords in the code editor and make > them clickable. > So If a user clicks on somthing like //TT#2342 I want to open the new > Tasktracker mode and display the ticket number 2342. > > Can you point me in a direction where I should start looking into the > code of the editor plugin to begin with? > Is there any code that I can reuse for the clicking? /me thinks of the > possibility to CTRL+click on a function to jump there.
I recently moved the Ctrl+Click navigation down into the BaseTextEditor. Hooking into that requires reimplementing the virtual methods BaseTextEditor::findLinkAt and BaseTextEditor::openLink. The CPPEditor has implementations of those that you should be able to extend. Regards, Bjørn -- Thorbjørn Lindeijer Software Engineer Nokia, Qt Development Frameworks _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator