On Jun 16, 2010, at 10:58 AM, ext Liebe Markus (RtP2/TEF72) wrote: > Hi there, > > I have created a custom editor plugin for qtcreator. Now I want to use CTRL+F > to bring up and use the search toolbar. > I already had a look at the BinEditorPlugin and found out about "class > BinEditorFind : public Find::IFindSupport" which I used to model my own > OwnEditorFind class accordingly. > > And I used this class in my editor plugin according to the way it is done in > the BinEditor plugin.
If you could point us to your code, we could have a look and help :) The general information is: Whenever the focus changes, the find plugin looks in the Widget hierarchy of the focus widget for one that has a IFindSupport "attached". I.e. you need to create an Aggregate::Aggregation* and add the IFindSupport and the _QWidget_ instance to it (not the IEditor). (Aggregate::Aggregation has even some documentation about its usage.) Br, Eike > But the Find menu entry stays disabled when my editor is opened. > > Can anyone give me a hint which steps are necessary to enable searching in > custom editor plugins? > > Regards, > Markus -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator