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

Ziller Eike Eike.Ziller at digia.com
Mon Apr 15 11:41:03 CEST 2013


On 15.04.2013, at 09:44, Koehne Kai <Kai.Koehne at digia.com> wrote:

> 
> 
>> -----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?

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




More information about the Qt-creator mailing list