TechDraw - Edit annotations via double-click
This commit is contained in:
committed by
Bernd Hahnebach
parent
2343c3cbe2
commit
09d9caf438
@@ -317,6 +317,15 @@ void MRichTextEdit::focusInEvent(QFocusEvent *) {
|
||||
f_textedit->setFocus(Qt::TabFocusReason);
|
||||
}
|
||||
|
||||
void MRichTextEdit::keyPressEvent(QKeyEvent *event) {
|
||||
if (event->key() == Qt::Key_Return && event->modifiers() == Qt::ControlModifier) {
|
||||
onSave();
|
||||
return;
|
||||
}
|
||||
|
||||
QWidget::keyPressEvent(event);
|
||||
}
|
||||
|
||||
|
||||
void MRichTextEdit::textUnderline() {
|
||||
QTextCharFormat fmt;
|
||||
|
||||
Reference in New Issue
Block a user