Some user name auto completion.

Make some progress on #106
This commit is contained in:
Black Hat
2018-10-22 21:08:24 +08:00
parent dac2314a7e
commit 7ceb391621
4 changed files with 88 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#define SpectralRoom_H
#include "room.h"
#include "spectraluser.h"
#include <QObject>
#include <QTimer>
@@ -74,6 +75,8 @@ class SpectralRoom : public Room {
Q_INVOKABLE void getPreviousContent(int limit = 10);
Q_INVOKABLE QVariantList getUsers(const QString& prefix);
private:
QString m_cachedInput;
QSet<const QMatrixClient::RoomEvent*> highlights;