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:
@@ -104,7 +104,7 @@ void SourceAgent::setContent(const QString &filePath, const QString &content)
|
||||
|
||||
if (!d->editor) {
|
||||
QString titlePattern = d->producer + ": "
|
||||
+ Utils::FileName::fromString(filePath).fileName();
|
||||
+ Utils::FilePath::fromString(filePath).fileName();
|
||||
d->editor = qobject_cast<BaseTextEditor *>(
|
||||
EditorManager::openEditorWithContents(
|
||||
CppEditor::Constants::CPPEDITOR_ID,
|
||||
@@ -137,7 +137,7 @@ void SourceAgent::updateLocationMarker()
|
||||
if (d->engine->stackHandler()->currentFrame().file == d->path) {
|
||||
int lineNumber = d->engine->stackHandler()->currentFrame().line;
|
||||
|
||||
d->locationMark = new TextMark(Utils::FileName(), lineNumber,
|
||||
d->locationMark = new TextMark(Utils::FilePath(), lineNumber,
|
||||
Constants::TEXT_MARK_CATEGORY_LOCATION);
|
||||
d->locationMark->setIcon(Icons::LOCATION.icon());
|
||||
d->locationMark->setPriority(TextMark::HighPriority);
|
||||
|
||||
Reference in New Issue
Block a user