diff --git a/src/plugins/projectexplorer/doubletabwidget.cpp b/src/plugins/projectexplorer/doubletabwidget.cpp index 55817378855..36e93cfb887 100644 --- a/src/plugins/projectexplorer/doubletabwidget.cpp +++ b/src/plugins/projectexplorer/doubletabwidget.cpp @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -573,3 +574,8 @@ bool DoubleTabWidget::event(QEvent *event) } return QWidget::event(event); } + +QString DoubleTabWidget::Tab::displayName() const +{ + return nameIsUnique ? name : QDir::toNativeSeparators(fullName); +} diff --git a/src/plugins/projectexplorer/doubletabwidget.h b/src/plugins/projectexplorer/doubletabwidget.h index 4e2e70ec79b..92c23ac54ec 100644 --- a/src/plugins/projectexplorer/doubletabwidget.h +++ b/src/plugins/projectexplorer/doubletabwidget.h @@ -80,9 +80,7 @@ private: bool nameIsUnique; QStringList subTabs; int currentSubTab; - QString displayName() const { - return nameIsUnique ? name : fullName; - } + QString displayName() const; }; void updateNameIsUniqueAdd(Tab *tab); void updateNameIsUniqueRemove(const Tab &tab);