bool QgsLayout::moveItemToBottom( QgsLayoutItem *item, bool deferUpdate ) { //model handles reordering items bool result = mItemsModel->reorderItemToBottom( item ); if ( result && !deferUpdate ) { //update all positions updateZValues(); update(); } return result; }
void QgsComposition::moveSelectedItemsToBottom() { QList<QgsComposerItem*> selectedItems = selectedComposerItems(); QList<QgsComposerItem*>::iterator it = selectedItems.begin(); for ( ; it != selectedItems.end(); ++it ) { moveItemToBottom( *it ); } //update all positions updateZValues(); update(); }