tr( "ACT_REPLACE" ), this );
action->setToolTip( tr( "TTP_REPLACE" ) );
action->setStatusTip( tr( "DSC_REPLACE" ) );
- action->setShortcut( QKeySequence::Replace );
+ action->setShortcuts( QList<QKeySequence>() << QKeySequence( "Ctrl+H" ) << QKeySequence( QKeySequence::Replace ) );
action->setShortcutContext( Qt::WidgetShortcut );
connect( action, SIGNAL( triggered( bool ) ), myEditor, SLOT( replace() ) );
myActions[ ReplaceId ] = action;
return true;
}
+
+/*!
+ Get editor.
+ \return Editor widget.
+*/
+PyEditor_Widget* PyEditor_Window::editor()
+{
+ return myEditor;
+}
+
/*!
Slot, called when user clicks "Help" button in "Preferences" dialog box.
*/