Commit 1c739aec authored by Tim Jenssen's avatar Tim Jenssen

WelcomePage: displayName is used and not display

Somehow thought that displayName is already in
QAbstractListModel::roleNames(). Also removed unnecessaey default
roles.

Task-number: QTCREATORBUG-16483
Change-Id: I6651502ee91b20eb1af7e22a67b6b67077ad8aaa
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent 9b9a647a
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment