projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Features come and features go...
[quassel.git]
/
src
/
uisupport
/
tabcompleter.h
diff --git
a/src/uisupport/tabcompleter.h
b/src/uisupport/tabcompleter.h
index
00560dc
..
b223fe6
100644
(file)
--- a/
src/uisupport/tabcompleter.h
+++ b/
src/uisupport/tabcompleter.h
@@
-21,36
+21,38
@@
#ifndef _TABCOMPLETER_H_
#define _TABCOMPLETER_H_
#ifndef _TABCOMPLETER_H_
#define _TABCOMPLETER_H_
-#include <QtCore>
#include <QObject>
#include <QObject>
-#include <QLineEdit>
+#include <QStringList>
+#include <QPointer>
+
+class InputLine;
+class IrcUser;
class TabCompleter : public QObject {
Q_OBJECT
class TabCompleter : public QObject {
Q_OBJECT
- public:
- TabCompleter(QLineEdit *l, QObject *parent = 0);
- void disable();
- void complete();
+public:
+ TabCompleter(InputLine *inputLine_);
+
+ void reset();
+ void complete();
+
+private slots:
+ void ircUserJoinedOrParted(IrcUser *ircUser);
- public slots:
- void updateNickList(QStringList);
- void updateChannelList(QStringList);
-
- private:
- bool enabled;
- QString startOfLineSuffix;
- QLineEdit *lineEdit;
- QStringList completionTemplates;
- QStringList channelList;
+private:
+ QPointer<InputLine> inputLine;
+ bool enabled;
+ QString nickSuffix;
- QStringList nickList;
- QStringList completionList;
- QStringList::Iterator nextCompletion;
- int lastCompletionLength;
-
- void buildCompletionList();
-
+ QStringList completionList;
+ // QStringList completionTemplates;
+
+ QStringList::Iterator nextCompletion;
+ int lastCompletionLength;
+
+ void buildCompletionList();
+
};
#endif
};
#endif