]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandEdit.h
fix build.
[lyx.git] / src / frontends / qt2 / QCommandEdit.h
1 // -*- C++ -*-
2 /**
3  * \file QCommandEdit.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QCOMMANDEDIT_H
13 #define QCOMMANDEDIT_H
14
15 #include <qlineedit.h>
16
17 class QCommandEdit : public QLineEdit {
18         Q_OBJECT
19 public:
20
21         QCommandEdit(QWidget * parent);
22
23 signals:
24         /// cancel
25         void escapePressed();
26
27         /// up history
28         void upPressed();
29
30         /// down history
31         void downPressed();
32
33         /// complete
34         void rightPressed();
35
36 protected:
37         virtual void keyPressEvent(QKeyEvent * e);
38 };
39
40 #endif // QCOMMANDEDIT_H