MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / itemChanged

Method itemChanged

Gui/TableModelView.cpp:840–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void
841TableModel::itemChanged(TableItem *item)
842{
843 if (!item) {
844 return;
845 }
846
847 if (item->flags() & ItemIsHeaderItem) {
848 int column = _imp->indexOfHeaderItem(item);
849 if (column >= 0) {
850 Q_EMIT headerDataChanged(Qt::Horizontal, column, column);
851 }
852 } else {
853 QModelIndex idx = index(item);
854 if ( idx.isValid() ) {
855 Q_EMIT dataChanged(idx, idx);
856 }
857 }
858}
859
860Qt::ItemFlags
861TableModel::flags(const QModelIndex &index) const

Callers 2

setFlagsMethod · 0.80
setDataMethod · 0.80

Calls 3

indexOfHeaderItemMethod · 0.80
flagsMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected