mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Diable delete and backspace shortcuts while ading node item
This commit is contained in:
parent
712e631a85
commit
0b9007536f
@ -611,6 +611,11 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
|
||||
backSpace->setContext( Qt::WidgetWithChildrenShortcut );
|
||||
#endif
|
||||
|
||||
// Delete selection should be disabled when creating node item
|
||||
connect( mAddNodeItemTool, &QgsLayoutViewTool::activated, this, [ this, backSpace ] { backSpace->setEnabled( false ); mActionDeleteSelection->setEnabled( false ); } );
|
||||
connect( mAddNodeItemTool, &QgsLayoutViewTool::deactivated, this, [ this, backSpace ] { backSpace->setEnabled( true ); mActionDeleteSelection->setEnabled( true ); } );
|
||||
|
||||
|
||||
mActionPreviewModeOff->setChecked( true );
|
||||
connect( mActionPreviewModeOff, &QAction::triggered, this, [=] {
|
||||
mView->setPreviewModeEnabled( false );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user