Lines Matching refs:parent
37 while (target_ref->parent() != target_ref->root()) {
38 target_ref = target_ref->parent();
45 our_ref->parent()->removeChild(our_ref);
47 } else if (target_ref->parent() != our_ref->parent()) {
48 // Change in parent, need to remove and add
49 our_ref->parent()->removeChild(our_ref);
50 target_ref->parent()->addChild(our_ref, target_ref);
52 // Same parent, just move
53 our_ref->parent()->changeOrder(our_ref, target_ref);