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 <alessandro.portale@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Tim Jenssen
2016-06-30 12:13:42 +02:00
parent 9b9a647aed
commit 1c739aeccb

View File

@@ -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()