diff options
-rw-r--r-- | src/plugins/projectexplorer/projectwelcomepage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectwelcomepage.cpp b/src/plugins/projectexplorer/projectwelcomepage.cpp index 4c8b6fd91c..93084124da 100644 --- a/src/plugins/projectexplorer/projectwelcomepage.cpp +++ b/src/plugins/projectexplorer/projectwelcomepage.cpp @@ -195,10 +195,12 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const QHash<int, QByteArray> ProjectModel::roleNames() const { static QHash<int, QByteArray> extraRoles{ + {Qt::DisplayRole, "displayName"}, {FilePathRole, "filePath"}, {PrettyFilePathRole, "prettyFilePath"} }; - return QAbstractListModel::roleNames().unite(extraRoles); + + return extraRoles; } void ProjectModel::resetProjects() |