#ifdef HAVE_KDE
//This is done to make the KTextEdit look like a lineedit
setMaximumHeight(document()->size().toSize().height());
#ifdef HAVE_KDE
//This is done to make the KTextEdit look like a lineedit
setMaximumHeight(document()->size().toSize().height());
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setAcceptRichText(false);
setLineWrapMode(NoWrap);
enableFindReplace(false);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setAcceptRichText(false);
setLineWrapMode(NoWrap);
enableFindReplace(false);
connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged()));
#endif
connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged()));
#endif
bool InputLine::eventFilter(QObject *watched, QEvent *event) {
if(event->type() != QEvent::KeyPress)
return false;
bool InputLine::eventFilter(QObject *watched, QEvent *event) {
if(event->type() != QEvent::KeyPress)
return false;
void InputLine::showHistoryEntry() {
// if the user changed the history, display the changed line
tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]);
void InputLine::showHistoryEntry() {
// if the user changed the history, display the changed line
tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]);