forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -169,12 +169,12 @@ void ClangFormatConfigWidget::initChecksAndPreview()
|
||||
m_preview->textDocument()->setFontSettings(TextEditor::TextEditorSettings::fontSettings());
|
||||
m_preview->textDocument()->setSyntaxHighlighter(new CppEditor::CppHighlighter);
|
||||
|
||||
Utils::FileName fileName;
|
||||
Utils::FilePath fileName;
|
||||
if (m_project) {
|
||||
connect(m_ui->applyButton, &QPushButton::clicked, this, &ClangFormatConfigWidget::apply);
|
||||
fileName = m_project->projectFilePath().pathAppended("snippet.cpp");
|
||||
} else {
|
||||
fileName = Utils::FileName::fromString(Core::ICore::userResourcePath())
|
||||
fileName = Utils::FilePath::fromString(Core::ICore::userResourcePath())
|
||||
.pathAppended("snippet.cpp");
|
||||
}
|
||||
m_preview->textDocument()->indenter()->setFileName(fileName);
|
||||
@@ -241,7 +241,7 @@ void ClangFormatConfigWidget::showGlobalCheckboxes()
|
||||
|
||||
static bool projectConfigExists()
|
||||
{
|
||||
return Utils::FileName::fromString(Core::ICore::userResourcePath())
|
||||
return Utils::FilePath::fromString(Core::ICore::userResourcePath())
|
||||
.pathAppended("clang-format")
|
||||
.pathAppended(currentProjectUniqueId())
|
||||
.pathAppended((Constants::SETTINGS_FILE_NAME))
|
||||
|
||||
Reference in New Issue
Block a user