summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@theqtcompany.com>2016-06-30 12:13:42 +0200
committerTim Jenssen <tim.jenssen@theqtcompany.com>2016-07-01 08:43:03 +0000
commit1c739aeccbb0cdecae01d2b7c588f5b3d70b1fb8 (patch)
treedf77d31d050adf146d56fe3c4008a93dc9c73040
parent9b9a647aedd35ce10def5ddb18473fa6708a6bc2 (diff)
downloadqt-creator-1c739aeccbb0cdecae01d2b7c588f5b3d70b1fb8.tar.gz
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>
-rw-r--r--src/plugins/projectexplorer/projectwelcomepage.cpp4
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()