MCPcopy Create free account
hub / github.com/KDAB/GammaRay / setTextColor

Method setTextColor

plugins/quickinspector/quickitemdelegate.cpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void QuickItemDelegate::setTextColor(const QVariant &textColor, const QPersistentModelIndex &index)
128{
129 if (!index.isValid())
130 return;
131
132 m_colors[index] = textColor.value<QColor>();
133
134 for (int i = 0; i < m_view->model()->columnCount(); i++)
135 m_view->update(index.sibling(index.row(), i));
136}

Callers 1

itemModelDataChangedMethod · 0.80

Calls 5

rowMethod · 0.80
isValidMethod · 0.45
columnCountMethod · 0.45
modelMethod · 0.45
updateMethod · 0.45

Tested by 1

itemModelDataChangedMethod · 0.64