On 15.04.2013, at 09:44, Koehne Kai <[email protected]> wrote: > > >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf >> Of gemfield >> Sent: Saturday, April 13, 2013 3:11 PM >> To: [email protected] >> Subject: [Interest] How to use DiffEditorPlugin::diff() API in my own Qt >> creator plugin? >> >> There have a DiffEditorPlugin::diff() API new added in Qt Creator 2.7, though >> I can use it from Qt Creator Menu, I want to use it directly from my own Qt >> Creator plugin.So, the question is: >> How to invoke DiffEditorPlugin::diff() API (with Qt Creator style)in my own >> Qt >> Creator plugin? > > Hi Gemfield, > > This question would better fit to the qt-creator@ mailing list. I took the > freedom to cross-post it there. > > For the original question, diff() is a private slot of a non-exported class. > Anyhow, as a workaround you should be able to trigger it via > Core::ActionManager::command(), with ID = "DiffEditor.Diff". > > A cleaner solution would of course be to expose this functionality directly > ... Maybe this could be done for 2.8?
Since the diff viewer is supposed to integrate with e.g. the version control plugins (probably for 2.8), I'd think this will be done in one way or the other, yes. Br, Eike -- Eike Ziller, Senior Software Engineer - Digia, Qt Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
