summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourceagent.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-10-07 22:38:47 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-10-13 16:32:31 +0000
commit147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 (patch)
tree5fd2f6af06da917ca1a7fd5b6fea56fe4c269337 /src/plugins/debugger/sourceagent.cpp
parentd0d6f9949114c55aa728f99cb321fa0779efcf31 (diff)
downloadqt-creator-147a3c27c4db8d5cb5c2cedba9a51c1bb216d307.tar.gz
Debugger: Strip QLatin1* where possible
Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/sourceagent.cpp')
-rw-r--r--src/plugins/debugger/sourceagent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceagent.cpp b/src/plugins/debugger/sourceagent.cpp
index d133081b46..074806c5bb 100644
--- a/src/plugins/debugger/sourceagent.cpp
+++ b/src/plugins/debugger/sourceagent.cpp
@@ -68,7 +68,7 @@ public:
};
SourceAgentPrivate::SourceAgentPrivate()
- : producer(QLatin1String("remote"))
+ : producer("remote")
{
}
@@ -103,7 +103,7 @@ void SourceAgent::setContent(const QString &filePath, const QString &content)
d->path = filePath;
if (!d->editor) {
- QString titlePattern = d->producer + QLatin1String(": ")
+ QString titlePattern = d->producer + ": "
+ Utils::FileName::fromString(filePath).fileName();
d->editor = qobject_cast<BaseTextEditor *>(
EditorManager::openEditorWithContents(