forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user