[Interest] Model/view: DnD move w/o remove/insert.

Giuseppe D'Angelo dangelog at gmail.com
Sun Nov 27 14:55:46 CET 2016


On Sun, Nov 27, 2016 at 11:25 AM, Ch'Gans <chgans at gna.org> wrote:
> My model supports moveRows (without relying on remove/insert), and i
> have a small toolbar under my table view to move the selected item up
> and down.

Unfortunately the code for DND predates moveRows. DND comes straight
from Qt 4, and internal moves are implemented via insert+remove.
moveRows is a Qt 5 addition, and we can't break old code. Nobody
bothered so far to implement some kind of opt-in mechanism to use
moveRows...

HTH,
-- 
Giuseppe D'Angelo



More information about the Interest mailing list