MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / flags

Method flags

launcher/minecraft/WorldList.cpp:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368Qt::ItemFlags WorldList::flags(const QModelIndex &index) const
369{
370 Qt::ItemFlags defaultFlags = QAbstractListModel::flags(index);
371 if (index.isValid())
372 return Qt::ItemIsUserCheckable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled |
373 defaultFlags;
374 else
375 return Qt::ItemIsDropEnabled | defaultFlags;
376}
377
378Qt::DropActions WorldList::supportedDragActions() const
379{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected