2112static void copyRolesToItem(
const ItemData *id, T *item, DesignerIconCache *iconCache,
bool editor)
2114 for (
auto it = id->m_properties.cbegin(), end = id->m_properties.cend(); it != end; ++it) {
2115 if (it.value().isValid()) {
2117 item->setFlags((Qt::ItemFlags)it.value().toInt());
2119 item->setData(it.key(), it.value());
2121 case Qt::DecorationPropertyRole:
2123 item->setIcon(iconCache->icon(qvariant_cast<PropertySheetIconValue>(it.value())));
2125 case Qt::DisplayPropertyRole:
2128 case Qt::ToolTipPropertyRole:
2131 case Qt::StatusTipPropertyRole:
2134 case Qt::WhatsThisPropertyRole:
2143 item->setFlags(item->flags() | Qt::ItemIsEditable);
2395 const TableWidgetContents &rhs)
noexcept
2397 return lhs.m_columnCount == rhs.m_columnCount && lhs.m_rowCount == rhs.m_rowCount &&
2398 lhs.m_horizontalHeader.m_items == rhs.m_horizontalHeader.m_items &&
2399 lhs.m_verticalHeader.m_items == rhs.m_verticalHeader.m_items &&
2400 lhs.m_items == rhs.m_items;