Commit b1bb59ae authored by David Schulz's avatar David Schulz Committed by Tobias Hunger
Browse files

Editor: Fix autocompletion under Qt5

Change-Id: Id8ce9ebe53823abe211e43c7c44ec19a24ed63f5
Reviewed-by: default avatarTobias Hunger <>
parent 069ad73f
......@@ -2099,7 +2099,12 @@ QChar BaseTextEditorWidget::characterAt(int pos) const
bool BaseTextEditorWidget::event(QEvent *e)
#if QT_VERSION >= 0x050000
if (e->type() != QEvent::InputMethodQuery)
d->m_contentsChanged = false;
d->m_contentsChanged = false;
switch (e->type()) {
case QEvent::ShortcutOverride:
if (static_cast<QKeyEvent*>(e)->key() == Qt::Key_Escape && d->m_snippetOverlay->isVisible()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment