added alt+arrowkeys back

This commit is contained in:
fourtf
2018-05-25 14:57:17 +02:00
parent abd46d0bb8
commit 50a2454cc6
8 changed files with 154 additions and 56 deletions
+10 -1
View File
@@ -137,10 +137,19 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
}
}
void ResizingTextEdit::focusInEvent(QFocusEvent *event)
{
QTextEdit::focusInEvent(event);
if (event->gotFocus()) {
this->focused.invoke();
}
}
void ResizingTextEdit::setCompleter(QCompleter *c)
{
if (this->completer) {
QObject::disconnect(this->completer, 0, this, 0);
QObject::disconnect(this->completer, nullptr, this, nullptr);
}
this->completer = c;