From 8b40134a4766175486fdcfdb0198ca7fa0b7898a Mon Sep 17 00:00:00 2001 From: Andre Rummler Date: Tue, 11 Aug 2026 00:25:45 +0200 Subject: [PATCH] sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp QVector(Qt::DisplayRole) creates a vector of size 0 (since Qt::DisplayRole == 0), not a vector containing DisplayRole. Fixed to {Qt::DisplayRole}. The sam applies to QVector(role) which gets changed to {role}. --- sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp b/sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp index 7ef031504..abfe1bf01 100644 --- a/sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp +++ b/sources/qetgraphicsitem/ViewItem/projectdbmodel.cpp @@ -146,7 +146,7 @@ bool ProjectDBModel::setData(const QModelIndex &index, const QVariant &value, in return false; } m_index_0_0_data.insert(role, value); - emit dataChanged(index, index, QVector(role)); + emit dataChanged(index, index, {role}); return true; } @@ -332,7 +332,7 @@ void ProjectDBModel::dataBaseUpdated() auto row = m_record.size(); auto col = row ? m_record.first().count() : 1; - emit dataChanged(this->index(0,0), this->index(row-1, col-1), QVector(Qt::DisplayRole)); + emit dataChanged(this->index(0,0), this->index(row-1, col-1), {Qt::DisplayRole}); } }