Replaced deprecated Qt::BackgroundColorRole by Qt::BackgroundRole and Qt::TextColorRole by Qt::ForegroundRole

This commit is contained in:
thunder2 2025-07-22 17:07:06 +02:00
parent ff822498a6
commit c4c2c5a0d1
11 changed files with 12 additions and 12 deletions

View file

@ -52,7 +52,7 @@ void GroupSelectionBox::fillGroups()
for (std::list<RsGroupInfo>::const_iterator it(groupIds.begin()); it != groupIds.end(); ++it) {
QListWidgetItem *item = new QListWidgetItem(GroupDefs::name(*it));
item->setData(ROLE_ID, QString::fromStdString(it->id.toStdString()));
item->setBackgroundColor(QColor(183,236,181));
item->setBackground(QColor(183,236,181));
addItem(item);
}