MCPcopy Create free account
hub / github.com/MultiMC/Launcher / flags

Method flags

launcher/minecraft/mod/ModFolderModel.cpp:493–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493Qt::ItemFlags ModFolderModel::flags(const QModelIndex &index) const
494{
495 Qt::ItemFlags defaultFlags = QAbstractListModel::flags(index);
496 auto flags = defaultFlags;
497 if(interaction_disabled) {
498 flags &= ~Qt::ItemIsDropEnabled;
499 }
500 else
501 {
502 flags |= Qt::ItemIsDropEnabled;
503 if(index.isValid()) {
504 flags |= Qt::ItemIsUserCheckable;
505 }
506 }
507 return flags;
508}
509
510Qt::DropActions ModFolderModel::supportedDropActions() const
511{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected