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

Method flags

src/LanguageStylesModel.cpp:243–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243Qt::ItemFlags LanguageStylesModel::flags(const QModelIndex &index) const
244{
245 const Qt::ItemFlags default_flags = Qt::ItemIsSelectable | Qt::ItemIsEnabled;
246
247 if (!index.isValid())
248 return Qt::NoItemFlags;
249
250 switch (index.column()) {
251 case 4: // Font
252 case 5: // Size
253 case 6: // Fractional
254 case 7: // Bold
255 case 8: // Weight
256 case 9: // Italic
257 case 10: // Underline
258 case 11: // Fore
259 case 12: // Back
260 case 13: // EOL Filled
261 case 15: // Case
262 case 16: // Visible
263 case 17: // Changeable
264 case 18: // Hotspot
265 return default_flags | Qt::ItemIsEditable;
266 }
267
268 return default_flags;
269}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected