Display room's latest event instead of topic when possible.

This commit is contained in:
Black Hat
2018-08-22 23:21:39 +08:00
parent e428e9f005
commit cca9467703
6 changed files with 25 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ class RoomListModel : public QAbstractListModel {
TopicRole,
CategoryRole,
UnreadCountRole,
LastEventRole
};
RoomListModel(QObject* parent = 0);
@@ -70,7 +71,8 @@ class RoomListModel : public QAbstractListModel {
signals:
void connectionChanged();
void roomAdded(MatriqueRoom* room);
void newMessage(const QString& roomName, const QString& content, const QIcon& icon);
void newMessage(const QString& roomName, const QString& content,
const QIcon& icon);
};
#endif // ROOMLISTMODEL_H