[Interest] How to use DiffEditorPlugin::diff() API in my own Qt creator plugin?

Koehne Kai Kai.Koehne at digia.com
Mon Apr 15 09:44:17 CEST 2013



> -----Original Message-----
> From: interest-bounces+kai.koehne=digia.com at qt-project.org
> [mailto:interest-bounces+kai.koehne=digia.com at qt-project.org] On Behalf
> Of gemfield
> Sent: Saturday, April 13, 2013 3:11 PM
> To: interest at qt-project.org
> 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?

Regards

Kai


More information about the Interest mailing list