[Qt-creator] Is it possible to run some commands or scripts on saving the documents?

Orgad Shaneh orgads at gmail.com
Wed Sep 9 16:11:12 CEST 2015


On Wed, Sep 9, 2015 at 5:00 PM, Hualet Wang <mr.asianwang at gmail.com> wrote:

> Hi Lorenz,
>
> I occasionally found below lines in source code of todo plugin,
> >
> >     CppTools::CppModelManager *modelManager
> =CppTools::CppModelManager::instance();
> >
> >     connect(modelManager, &CppTools::CppModelManager::documentUpdated,
> >             this, &CppTodoItemsScanner::documentUpdated,
> Qt::DirectConnection);
>
> I’m pretty excited about that finding, maybe you can use the APIs in that
> snippet to run
> Beautifier on the document every time the document get updated?
>
>
That would be for almost each typed char. I doubt that's what you're
looking for...

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150909/e6b21233/attachment.html>


More information about the Qt-creator mailing list