X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.h;fp=src%2Fuisupport%2Ftabcompleter.h;h=b8461ee72c7521948ef1b13d7d36cdafce062fdf;hp=bb5c0b323f4efc007013d02d6cb42bf8eaf6d01e;hb=49813fa53b34ffa35837d30fd022e2fc72f57eb5;hpb=d316067d1daf6c7ea790ca9ac5e1ff947fe011ce diff --git a/src/uisupport/tabcompleter.h b/src/uisupport/tabcompleter.h index bb5c0b32..b8461ee7 100644 --- a/src/uisupport/tabcompleter.h +++ b/src/uisupport/tabcompleter.h @@ -35,6 +35,11 @@ class TabCompleter : public QObject { Q_OBJECT public: + enum Type { + UserTab = 0x01, + ChannelTab = 0x02 + }; + explicit TabCompleter(MultiLineEdit *inputLine_); void reset(); @@ -43,15 +48,10 @@ public: virtual bool eventFilter(QObject *obj, QEvent *event); private: - enum Type { - UserTab = 0x01, - ChannelTab = 0x02 - }; struct CompletionKey { - inline CompletionKey(const QString &n, const Type t) { contents = n; type = t; } + inline CompletionKey(const QString &n) { contents = n; } bool operator<(const CompletionKey &other) const; - Type type; QString contents; }; @@ -62,11 +62,11 @@ private: static const Network *_currentNetwork; static BufferId _currentBufferId; static QString _currentBufferName; + static Type _completionType; QMap _completionMap; // QStringList completionTemplates; - Type _completionType; QMap::Iterator _nextCompletion; int _lastCompletionLength;