1 /****************************************************************************
3 ** Copyright (c) 2007 Trolltech ASA <info@trolltech.com>
4 ** Modified (c) 2009, 2011, 2013 by Glad Deschrijver <glad.deschrijver@gmail.com>
6 ** Use, modification and distribution is allowed without limitation,
7 ** warranty, liability or support of any kind.
9 ****************************************************************************/
18 class LineEdit
: public QLineEdit
23 explicit LineEdit(const QString
&text
, QWidget
*parent
= 0);
24 explicit LineEdit(QWidget
*parent
= 0);
25 bool isHistoryEnabled();
26 void setHistoryEnabled(bool enabled
= true);
29 void textEditingFinished(const QString
&text
);
32 bool eventFilter(QObject
*o
, QEvent
*e
);
33 void keyReleaseEvent(QKeyEvent
*ke
);
37 void restoreInlineCompletion();
40 bool m_historyEnabled
;
41 int m_historyPosition
;
42 QString m_currentText
;