3 * \file CustomizedWidgets.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef CUSTOMIZEDWIDGETS_H
14 #define CUSTOMIZEDWIDGETS_H
17 #include <QCloseEvent>
21 * A lineedit for inputting shortcuts
23 class ShortcutLineEdit : public QLineEdit {
26 ShortcutLineEdit(QWidget * parent) : QLineEdit(parent) {}
28 void keyPressEvent(QKeyEvent * e);
29 bool event(QEvent * e);
34 * A lineedit that displays a hint message when there is no
35 * text and not under focus.
37 class SearchLineEdit : public QLineEdit {
40 QString const hintMessage() const;
41 SearchLineEdit(QWidget * parent) : QLineEdit(parent) {}
43 void focusInEvent(QFocusEvent * e);
44 void focusOutEvent(QFocusEvent * e);
48 #endif // CUSTOMIZEDWIDGETS_H