src/model.cpp

changeset 1402
8bbf2af8c3f5
parent 1377
0b9a946002be
child 1425
5354313b9958
equal deleted inserted replaced
1401:59b578c77111 1402:8bbf2af8c3f5
335 335
336 return result; 336 return result;
337 } 337 }
338 338
339 case Qt::DecorationRole: 339 case Qt::DecorationRole:
340 return MainWindow::getIcon(object->typeName()); 340 return MainWindow::getIcon(object->iconName());
341 341
342 case Qt::BackgroundColorRole: 342 case Qt::BackgroundColorRole:
343 if (object->type() == LDObjectType::Error) 343 if (object->type() == LDObjectType::Error)
344 return QColor {"#AA0000"}; 344 return QColor {"#AA0000"};
345 else 345 else

mercurial