View Single Post
Old 08-05-2026, 04:10 PM   #13
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,901
Karma: 7500000
Join Date: Nov 2009
Device: many
I will take a look at creating a demo build that acts similarly for testing things. But no promises.

Luckily based on a github there is QItemSelection and QItemSelectionRange classes in Qt that convert mixed and non-contiguous selections piecewise into a list of contiguous selection ranges. That should be useful for a MoveRight (indent). But for a MoveLeft (unindent) siblings have to be dealt with too which complicates things.

Since MoveUp and MoveDown only work for top level items and they carry their children they are much simpler.

What about multi-selections with Delete? The safest would probably be to limit it to single selection at a time as it wipes out children, grandchildren, great-grandchildren, etc so a lot could be lost.
KevinH is online now   Reply With Quote