QmlProfiler: Fix drag/drop reordering

Since the reorganization into rows it would behave strangely when
reordering small categories under large ones.

Change-Id: Ic481710a706cc06a699e50ff60eaea2937a50530
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>