and dropping a collection to define a new favorite.
BUG: 387873
and dropping a collection to define a new favorite.
BUG: 387873
Tested all three features, reordering, adding, and dropping a mail.
Two issues left:
No Linters Available |
No Unit Test Coverage |
Tested it and dropping now works. Thanks!
The reordering however does not work very well. When having 3 items (icon mode) and I move one I can end up having it placed anywhere (e.g. lower than the 2 others)
or when trying to reorder the icons from "1 2 3" to "3 1 2" I can not get the 3 to the most left position as there is no space before the first one and also inserting
an item between two others is the same problem.
Yes, QListView in icon mode doesn't support reordering, I don't think there's anything I can do about that. AFAICS it only supports "free form spatial positioning" (like in file managers, with or without snapping to grid, QListView::Free/QListView::Snap) or no movement at all (QListView::Static). The reordering feature I implemented only works for QListView in list mode. I'm disappointed about that too.
Broke the unit test introduced before in D8884 though, the part which does
QVERIFY((orderProxy->flags(firstRowIndex) & Qt::ItemIsDropEnabled) == 0);
in FavoriteProxyTest::testReordering()
>3 years and no-one fixed it? Oh dear :) Complaining here to raise awareness, preparing a patch right now myself.
Thanks. Nobody told me it broke a unittest and I didn't notice, indeed. I think kdepim's unittests are ... lacking supervision.