mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-09 00:05:52 -04:00
Remove outdated TODO
This commit is contained in:
parent
feec186fbf
commit
c3e840115b
@ -715,50 +715,16 @@ void QgsLayoutView::deleteSelectedItems()
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0 //TODO
|
||||
if ( mCurrentTool == QgsComposerView::EditNodesItem )
|
||||
{
|
||||
if ( mNodesItemIndex != -1 )
|
||||
{
|
||||
composition()->beginCommand( mNodesItem, tr( "Remove item node" ) );
|
||||
if ( mNodesItem->removeNode( mNodesItemIndex ) )
|
||||
{
|
||||
composition()->endCommand();
|
||||
if ( mNodesItem->nodesSize() > 0 )
|
||||
{
|
||||
mNodesItemIndex = mNodesItem->selectedNode();
|
||||
// setSelectedNode( mNodesItem, mNodesItemIndex );
|
||||
}
|
||||
else
|
||||
{
|
||||
mNodesItemIndex = -1;
|
||||
mNodesItem = nullptr;
|
||||
}
|
||||
scene()->update();
|
||||
}
|
||||
else
|
||||
{
|
||||
composition()->cancelCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
const QList<QgsLayoutItem *> selectedItems = currentLayout()->selectedLayoutItems();
|
||||
const QList<QgsLayoutItem *> selectedItems = currentLayout()->selectedLayoutItems();
|
||||
|
||||
currentLayout()->undoStack()->beginMacro( tr( "Delete Items" ) );
|
||||
//delete selected items
|
||||
for ( QgsLayoutItem *item : selectedItems )
|
||||
{
|
||||
currentLayout()->removeLayoutItem( item );
|
||||
}
|
||||
currentLayout()->undoStack()->endMacro();
|
||||
currentLayout()->project()->setDirty( true );
|
||||
|
||||
#if 0
|
||||
currentLayout()->undoStack()->beginMacro( tr( "Delete Items" ) );
|
||||
//delete selected items
|
||||
for ( QgsLayoutItem *item : selectedItems )
|
||||
{
|
||||
currentLayout()->removeLayoutItem( item );
|
||||
}
|
||||
#endif
|
||||
currentLayout()->undoStack()->endMacro();
|
||||
currentLayout()->project()->setDirty( true );
|
||||
}
|
||||
|
||||
void QgsLayoutView::groupSelectedItems()
|
||||
|
Loading…
x
Reference in New Issue
Block a user