TextEditor: Use FilePath in Command

Change-Id: I0916204eefb49713f241dd43da662f258f8c99f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-02-07 18:02:53 +01:00
parent 012a2a6cd8
commit 432d918329
8 changed files with 19 additions and 20 deletions

View File

@@ -13,15 +13,15 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/idocument.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectnodes.h>
#include <projectexplorer/projecttree.h>
#include <texteditor/formattexteditor.h>
#include <texteditor/texteditor.h>
#include <utils/fileutils.h>
#include <QAction>
#include <QMenu>
#include <QVersionNumber>
using namespace TextEditor;
@@ -43,7 +43,7 @@ void CMakeFormatter::formatFile()
Command CMakeFormatter::command() const
{
Command command;
command.setExecutable(CMakeFormatterSettings::instance()->command().toString());
command.setExecutable(CMakeFormatterSettings::instance()->command());
command.setProcessing(Command::FileProcessing);
command.addOption("--in-place");
command.addOption("%file");