mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Address review
This commit is contained in:
		
							parent
							
								
									efdb16ef36
								
							
						
					
					
						commit
						b4b2dfdd21
					
				@ -116,7 +116,8 @@ class ScriptEditorDialog(BASE, WIDGET):
 | 
			
		||||
            QgsApplication.getThemeIcon("/mActionDecreaseFont.svg")
 | 
			
		||||
        )
 | 
			
		||||
        self.actionToggleComment.setIcon(
 | 
			
		||||
            QgsApplication.getThemeIcon("console/iconCommentEditorConsole.svg")
 | 
			
		||||
            QgsApplication.getThemeIcon("console/iconCommentEditorConsole.svg"),
 | 
			
		||||
            self.palette().color(QPalette.ColorRole.WindowText),
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
        # Connect signals and slots
 | 
			
		||||
 | 
			
		||||
@ -318,7 +318,7 @@ void QgsCodeEditor::contextMenuEvent( QContextMenuEvent *event )
 | 
			
		||||
      {
 | 
			
		||||
        QAction *toggleCommentAction = new QAction( tr( "Toggle Comment" ), menu );
 | 
			
		||||
        toggleCommentAction->setShortcut( QStringLiteral( "Ctrl+:" ) );
 | 
			
		||||
        toggleCommentAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/iconCommentEditorConsole.svg" ) ) );
 | 
			
		||||
        toggleCommentAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/iconCommentEditorConsole.svg" ), palette().color( QPalette::ColorRole::WindowText ) ) );
 | 
			
		||||
        toggleCommentAction->setEnabled( !isReadOnly() );
 | 
			
		||||
        connect( toggleCommentAction, &QAction::triggered, this, &QgsCodeEditor::toggleComment );
 | 
			
		||||
        menu->addAction( toggleCommentAction );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user