MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / flags

Method flags

src/MacroStepTableModel.cpp:176–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176Qt::ItemFlags MacroStepTableModel::flags(const QModelIndex &index) const
177{
178 if (!index.isValid())
179 return Qt::NoItemFlags;
180
181 if (index.column() == 0) {
182 return Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable;
183 }
184 else if (index.column() == 1 && MacroStep::MessageHasString(macro->getSteps()[index.row()].message)) {
185 // The second column is only editable if the macro has a string associated with it
186 return Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable;
187 }
188 else {
189 return Qt::ItemIsEnabled;
190 }
191}
192

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected