diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-11 18:55:15 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-11 18:55:15 +0100 |
| commit | e53905329a7a204ad0ad41600a9fb3040b942991 (patch) | |
| tree | c92be116c2098dda59c85c402bae4cb8c923ab70 /src/modlistsortproxy.cpp | |
| parent | 9e663691b0ad23faa979361facb416b7ea0fb08d (diff) | |
Allow collapsible separator in descending priority.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 9ae37a43..0682b9c3 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -617,6 +617,13 @@ bool ModListSortProxy::canDropMimeData(const QMimeData* data, Qt::DropAction act }
}
+ // in the regular model, when dropping between rows, the row-value passed to
+ // the sourceModel is inconsistent between ascending and descending ordering.
+ // This should fix that
+ if (sortOrder() == Qt::DescendingOrder) {
+ --row;
+ }
+
return QSortFilterProxyModel::canDropMimeData(data, action, row, column, parent);
}
|
