MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / dropPriority

Method dropPriority

src/modlist.cpp:995–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995int ModList::dropPriority(int row, const QModelIndex& parent) const
996{
997 if (row == -1) {
998 row = parent.row();
999 }
1000
1001 if ((row < 0) || (static_cast<unsigned int>(row) >= ModInfo::getNumMods())) {
1002 return -1;
1003 }
1004
1005 int newPriority = 0;
1006 {
1007 if (row < 0 || row >= rowCount()) {
1008 newPriority = Profile::MaximumPriority;
1009 } else {
1010 newPriority = m_Profile->getModPriority(row);
1011 }
1012 }
1013
1014 return newPriority;
1015}
1016
1017bool ModList::dropLocalFiles(const ModListDropInfo& dropInfo, int row,
1018 const QModelIndex& parent)

Callers 1

dropMimeDataMethod · 0.95

Calls 1

getModPriorityMethod · 0.80

Tested by

no test coverage detected