More changes in MessageDelegate.
This commit is contained in:
@@ -1 +1,5 @@
|
||||
#include "spectraluser.h"
|
||||
|
||||
QColor SpectralUser::color() {
|
||||
return QColor::fromHslF(hueF(), 0.7, 0.5, 1);
|
||||
}
|
||||
|
||||
@@ -10,9 +10,12 @@ using namespace QMatrixClient;
|
||||
|
||||
class SpectralUser : public User {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QColor color READ color CONSTANT)
|
||||
public:
|
||||
SpectralUser(QString userId, Connection* connection)
|
||||
: User(userId, connection) {}
|
||||
|
||||
QColor color();
|
||||
};
|
||||
|
||||
#endif // SpectralUser_H
|
||||
|
||||
Reference in New Issue
Block a user