Q_OBJECT
public:
+ enum Type {
+ UserTab = 0x01,
+ ChannelTab = 0x02
+ };
+
explicit TabCompleter(MultiLineEdit *inputLine_);
void reset();
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;
};
static const Network *_currentNetwork;
static BufferId _currentBufferId;
static QString _currentBufferName;
+ static Type _completionType;
QMap<CompletionKey, QString> _completionMap;
// QStringList completionTemplates;
- Type _completionType;
QMap<CompletionKey, QString>::Iterator _nextCompletion;
int _lastCompletionLength;