[Qt-creator] [Interest] How to use DiffEditorPlugin::diff() API in my own Qt creator plugin?
gemfield
gemfield at civilnet.cn
Tue Apr 16 14:11:03 CEST 2013
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130416/5bf3158b/attachment.html>
-------------- next part --------------
Kai:
Thanks. :)
--
Gemfield.org
> -----原始邮件-----
> 发件人: Koehne Kai <Kai.Koehne at digia.com>
> 发送时间: 2013年4月15日 星期一
> 收件人: gemfield <gemfield at civilnet.cn>
> 抄送: "interest at qt-project.org" <interest at qt-project.org>, "Qt-creator at qt-project.org" <Qt-creator at qt-project.org>
> 主题: RE: [Interest] How to use DiffEditorPlugin::diff() API in my own Qt creator plugin?
>
>
>
> > -----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 Qt-creator
mailing list