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

Method flags

plugins/modelinspector/modelcellmodel.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145Qt::ItemFlags ModelCellModel::flags(const QModelIndex &index) const
146{
147 Qt::ItemFlags flags = QAbstractTableModel::flags(index);
148 if (index.isValid() && m_index.isValid() && index.column() == 1) {
149 if (m_index.flags() & Qt::ItemIsEditable)
150 return flags | Qt::ItemIsEditable;
151 }
152 return flags;
153}
154
155int ModelCellModel::columnCount(const QModelIndex &parent) const
156{

Callers 2

setDataMethod · 0.45
cellSelectionChangedMethod · 0.45

Calls 2

columnMethod · 0.80
isValidMethod · 0.45

Tested by 1

cellSelectionChangedMethod · 0.36