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

2015-09-09 Thread Ziller Eike
> On Sep 9, 2015, at 4:28 PM, Hualet Wang wrote: > > >> Why would you want to do that? > > I’m the leader of a young team that doing Qt stuff, and now I want to unify > the coding style of our team, Beautifier plugin is handy enough, but we need > to manually trigger Beautifier every time, t

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

2015-09-09 Thread Hualet Wang
Haha, I agree with you, but tricks are really handy sometimes and can save you a lot of time ;) Anyway, it’s good to hear that there’s already solutions, cheers :) > 在 2015年9月9日,下午10:43,Lorenz Haas 写道: > > > > I know, but that can be fixed by some tricks, like a delayed operation, > > right?

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

2015-09-09 Thread Lorenz Haas
> I know, but that can be fixed by some tricks, like a delayed operation, right? I really do not like tricks. I have seen too many of them that do their job in 95% of their usage. I am unluckily continuously the guy running into the 5%. And what's the catch? I have to correct them. That's no fun..

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

2015-09-09 Thread André Hartmann
Hi all, there is already code under review to "beautify" on each save: https://codereview.qt-project.org/#/c/124941/ So suggestions and comments can also be placed there to continue the review process and get the patch accepted. Best regards, Andre Am 09.09.2015 um 16:11 schrieb Tobias Hunger

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

2015-09-09 Thread Hualet Wang
> Why would you want to do that? I’m the leader of a young team that doing Qt stuff, and now I want to unify the coding style of our team, Beautifier plugin is handy enough, but we need to manually trigger Beautifier every time, that’s boring and should be made automatic. > There are *lots* o

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

2015-09-09 Thread Tobias Hunger
On Wed, Sep 9, 2015 at 4:00 PM, Hualet Wang wrote: > Hi Lorenz, > > I occasionally found below lines in source code of todo plugin, >> >> CppTools::CppModelManager *modelManager >> =CppTools::CppModelManager::instance(); >> >> connect(modelManager, &CppTools::CppModelManager::documentUpda

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

2015-09-09 Thread Orgad Shaneh
On Wed, Sep 9, 2015 at 5:00 PM, Hualet Wang wrote: > Hi Lorenz, > > I occasionally found below lines in source code of todo plugin, > > > > CppTools::CppModelManager *modelManager > =CppTools::CppModelManager::instance(); > > > > connect(modelManager, &CppTools::CppModelManager::documentU

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

2015-09-09 Thread Hualet Wang
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::documentUpdat

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

2015-08-28 Thread Hualet Wang
I found the useful beautifier plugin yesterday, but what I want is to run astyle every time I save the document. so, any ideas? -- -- Hualet ___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator