X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Finputline.h;h=dc6d691ceeb1dd3c1285af8dfd04c125b6c3299d;hp=de4206d987f17fd6542109ed905e66b8190f3987;hb=d37bdc91c5474603e1417c2cd9c40c02e1ad5ee6;hpb=906789f761e5d1b37b46b5a05a2f649e28900e36 diff --git a/src/uisupport/inputline.h b/src/uisupport/inputline.h index de4206d9..dc6d691c 100644 --- a/src/uisupport/inputline.h +++ b/src/uisupport/inputline.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -31,25 +31,32 @@ class InputLine : public QLineEdit { public: InputLine(QWidget *parent = 0); ~InputLine(); - + protected: // virtual bool event(QEvent *); virtual void keyPressEvent(QKeyEvent * event); + virtual bool eventFilter(QObject *watched, QEvent *event); private slots: void on_returnPressed(); void on_textChanged(QString newText); + bool addToHistory(const QString &text, bool temporary = false); + signals: void sendText(QString text); private: QStringList history; + QHash tempHistory; qint32 idx; TabCompleter *tabCompleter; int bindModifier; int jumpModifier; + + void resetLine(); + void showHistoryEntry(); }; #endif