StudioWelcome: Only show project folder path

The project file name is usually the same as the folder and does
not add extra information.

Task-number: QDS-6169
Change-Id: I2673a30130cd73daa7bb6811b00e1cb05ee2444c
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Thomas Hartmann
2022-02-11 10:23:59 +01:00
parent fde7b90ee9
commit 125ac37724

View File

@@ -465,7 +465,7 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const
case FilePathRole:
return data.first;
case PrettyFilePathRole:
return Utils::withTildeHomePath(data.first);
return Utils::withTildeHomePath(QFileInfo(data.first).dir().absolutePath());
case PreviewUrl:
return QVariant(QStringLiteral("image://project_preview/") + appQmlFile(data.first));
case TagData: