2 * \file QCommandEdit.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "QCommandEdit.h"
21 QCommandEdit::QCommandEdit(QWidget * parent)
24 setFocusPolicy(Qt::ClickFocus);
28 void QCommandEdit::keyPressEvent(QKeyEvent * e)
47 if (e->modifiers() == Qt::AltModifier
48 || e->modifiers() == Qt::MetaModifier) {
55 QLineEdit::keyPressEvent(e);
61 bool QCommandEdit::event(QEvent * e)
63 if (e->type() != QEvent::KeyPress)
64 return QLineEdit::event(e);
66 QKeyEvent * ev = (QKeyEvent *)e;
68 if (ev->key() != Qt::Key_Tab)
69 return QLineEdit::event(e);
76 } // namespace frontend
79 #include "QCommandEdit_moc.cpp"