X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Finputline.h;h=88d606201015c8ec6628bb16e347ca5555b5a1f1;hb=48189e18131e2366eb2790b37f3b6412292f2d6c;hp=3294be19227fbc854023902ac713033ea243e635;hpb=bcfd213c6c381e6d2344ceba4a82ed3f87a9fd3e;p=quassel.git diff --git a/src/uisupport/inputline.h b/src/uisupport/inputline.h index 3294be19..88d60620 100644 --- a/src/uisupport/inputline.h +++ b/src/uisupport/inputline.h @@ -35,21 +35,27 @@ public: 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