void BaseEditor::keyPressEvent(QKeyEvent *e) { QPlainTextEdit::keyPressEvent(e); if(!e->isAccepted()&&e->key()==Qt::Key_Insert)//FIXME: crashrpt 8135582f-6f1c-46db-b3be-85ee2702a88d { emit overWriteModeChanged(); } }
this, SLOT( scrollPreviewTo() ) ); } connect( editor, SIGNAL( modificationChanged( bool ) ), this, SIGNAL( updateActions() ) ); connect( editor, SIGNAL( cursorPositionChanged() ), this, SLOT( cursorPositionChanged() ) ); connect( editor, SIGNAL( copyAvailable( bool ) ), this, SLOT( setCopyAvaliable( bool ) ) ); connect( editor, SIGNAL( undoAvailable( bool ) ), this, SIGNAL( updateActions() ) ); connect( editor, SIGNAL( redoAvailable( bool ) ), this, SIGNAL( updateActions() ) ); connect( editor, SIGNAL( overWriteModeChanged() ), this, SLOT( overWriteModeChanged() ) ); connect( editor, SIGNAL( textChanged() ), this, SIGNAL( textChanged() ) ); connect( findAndReplaceWidget, SIGNAL( findText( QString, QTextDocument::FindFlags, bool, bool ) ), editor, SLOT( findAndHighlightText( QString, QTextDocument::FindFlags, bool, bool ) ) ); connect( findAndReplaceWidget, SIGNAL( findHide() ), editor, SLOT( findFinished() ) ); connect( findAndReplaceWidget, SIGNAL( findHide() ), this, SLOT( setFocusEditor() ) ); connect( findAndReplaceWidget, SIGNAL( findHide() ), this, SLOT( hideFind() ) ); connect( findAndReplaceWidget, SIGNAL( findNext( QString, QTextDocument::FindFlags, bool ) ), editor, SLOT( findFirstOccurrance( QString, QTextDocument::FindFlags, bool ) ) ); connect( findAndReplaceWidget, SIGNAL( findPrevious( QString, QTextDocument::FindFlags, bool ) ), editor, SLOT( findFirstOccurrance( QString, QTextDocument::FindFlags, bool ) ) );