Clean up code.
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
|
||||
class MessageEventModel: public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
// The below property is marked constant because it only changes
|
||||
// when the whole model is reset (so anything that depends on the model
|
||||
// has to be re-calculated anyway).
|
||||
// XXX: A better way would be to make [Room::]Timeline a list model
|
||||
// itself, leaving only representation of the model to a client.
|
||||
Q_PROPERTY(MatriqueRoom* room MEMBER m_currentRoom CONSTANT)
|
||||
Q_OBJECT
|
||||
// The below property is marked constant because it only changes
|
||||
// when the whole model is reset (so anything that depends on the model
|
||||
// has to be re-calculated anyway).
|
||||
// XXX: A better way would be to make [Room::]Timeline a list model
|
||||
// itself, leaving only representation of the model to a client.
|
||||
Q_PROPERTY(MatriqueRoom* room MEMBER m_currentRoom CONSTANT)
|
||||
|
||||
public:
|
||||
enum EventRoles {
|
||||
EventTypeRole = Qt::UserRole + 1,
|
||||
|
||||
Reference in New Issue
Block a user