| 993 | } |
| 994 | |
| 995 | int 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 | |
| 1017 | bool ModList::dropLocalFiles(const ModListDropInfo& dropInfo, int row, |
| 1018 | const QModelIndex& parent) |
no test coverage detected