X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fchannelwidgetinput.h;h=eb9a9de9a82d2719cf4c7f73c434162944504f3d;hp=e466f1dbd1a4e62c59faaf16a275158631691a25;hb=fd718b6209f1ad2bcd199c44c2dae3b0cb0f633b;hpb=9cbaab34158d0f2e77c18d6ac055582102812553 diff --git a/gui/channelwidgetinput.h b/gui/channelwidgetinput.h index e466f1db..eb9a9de9 100644 --- a/gui/channelwidgetinput.h +++ b/gui/channelwidgetinput.h @@ -23,13 +23,15 @@ #include #include +#include "tabcompleter.h" class ChannelWidgetInput : public QLineEdit { Q_OBJECT public: ChannelWidgetInput(QWidget *parent = 0); - + ~ChannelWidgetInput(); + protected: virtual bool event(QEvent *); virtual void keyPressEvent(QKeyEvent * event); @@ -40,15 +42,15 @@ class ChannelWidgetInput : public QLineEdit { public slots: void updateNickList(QStringList); + signals: + void nickListUpdated(QStringList); + private: qint32 idx; QStringList history; QStringList nickList; - - bool tabMode; - int lastCompletionLength; - QStringList tabCompleteList; - QStringList::Iterator nextCompletion; + + TabCompleter *tabComplete; }; #endif