diff options
author | Lorenz Haas <lykurg@gmail.com> | 2014-06-26 00:00:08 +0200 |
---|---|---|
committer | Lorenz Haas <lykurg@gmail.com> | 2014-07-09 09:39:36 +0200 |
commit | ae39a009083066fd7dd2435f0932bb4a81f38376 (patch) | |
tree | c83425b73b0f20b731a90e607c00d38e336f30ba /src/plugins/beautifier/uncrustify/uncrustify.cpp | |
parent | 0e6609155f7e5231549ea7c003cbf8f31ca61be3 (diff) | |
download | qt-creator-ae39a009083066fd7dd2435f0932bb4a81f38376.tar.gz |
Beautifier: Format current file asynchronous
The formatting tool is now called asynchronous.
Change-Id: I0415611655a584ba0275f4bccd065ea1182f83dc
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/beautifier/uncrustify/uncrustify.cpp')
-rw-r--r-- | src/plugins/beautifier/uncrustify/uncrustify.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/beautifier/uncrustify/uncrustify.cpp b/src/plugins/beautifier/uncrustify/uncrustify.cpp index 1db39853b2..595e981b15 100644 --- a/src/plugins/beautifier/uncrustify/uncrustify.cpp +++ b/src/plugins/beautifier/uncrustify/uncrustify.cpp @@ -59,8 +59,9 @@ namespace Beautifier { namespace Internal { namespace Uncrustify { -Uncrustify::Uncrustify(QObject *parent) : +Uncrustify::Uncrustify(BeautifierPlugin *parent) : BeautifierAbstractTool(parent), + m_beautifierPlugin(parent), m_settings(new UncrustifySettings) { } @@ -142,7 +143,7 @@ void Uncrustify::formatFile() command.addOption(QLatin1String("1-2")); command.addOption(QLatin1String("-c")); command.addOption(cfgFileName); - BeautifierPlugin::formatCurrentFile(command); + m_beautifierPlugin->formatCurrentFile(command); } } |