X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Finputline.h;h=ff6091d41fdcea31aa7352eeeae160b441e1c97f;hb=731ec69d4608ba95e3ae4f154b8ca1852e1db2e5;hp=3294be19227fbc854023902ac713033ea243e635;hpb=bcfd213c6c381e6d2344ceba4a82ed3f87a9fd3e;p=quassel.git diff --git a/src/uisupport/inputline.h b/src/uisupport/inputline.h index 3294be19..ff6091d4 100644 --- a/src/uisupport/inputline.h +++ b/src/uisupport/inputline.h @@ -31,25 +31,31 @@ class InputLine : public QLineEdit { public: InputLine(QWidget *parent = 0); ~InputLine(); - + protected: // virtual bool event(QEvent *); virtual void keyPressEvent(QKeyEvent * 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