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 QLineEdit::keyPressEvent(e);
53 bool QCommandEdit::event(QEvent * e)
55 if (e->type() != QEvent::KeyPress)
56 return QLineEdit::event(e);
58 QKeyEvent * ev = (QKeyEvent *)e;
60 if (ev->key() != Qt::Key_Tab)
61 return QLineEdit::event(e);
68 } // namespace frontend
71 #include "QCommandEdit_moc.cpp"