Clean up code.

This commit is contained in:
Black Hat 2018-03-06 19:11:39 +08:00
parent b1d7840882
commit 788b17e06f
6 changed files with 104 additions and 103 deletions

View File

@ -14,6 +14,7 @@ class MessageEventModel: public QAbstractListModel
// XXX: A better way would be to make [Room::]Timeline a list model // XXX: A better way would be to make [Room::]Timeline a list model
// itself, leaving only representation of the model to a client. // itself, leaving only representation of the model to a client.
Q_PROPERTY(MatriqueRoom* room MEMBER m_currentRoom CONSTANT) Q_PROPERTY(MatriqueRoom* room MEMBER m_currentRoom CONSTANT)
public: public:
enum EventRoles { enum EventRoles {
EventTypeRole = Qt::UserRole + 1, EventTypeRole = Qt::UserRole + 1,