Refactor account labels
Move them out of NeoChatUser, where they don't make any sense
This commit is contained in:
committed by
Carl Schwan
parent
de55253e54
commit
f60114c7f6
@@ -11,8 +11,6 @@ class NeoChatUser : public Quotient::User
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
|
||||
// Only valid for the local user
|
||||
Q_PROPERTY(QString accountLabel READ accountLabel WRITE setAccountLabel NOTIFY accountLabelChanged)
|
||||
public:
|
||||
NeoChatUser(QString userId, Quotient::Connection *connection);
|
||||
|
||||
@@ -20,13 +18,8 @@ public Q_SLOTS:
|
||||
QColor color();
|
||||
void setColor(const QColor &color);
|
||||
|
||||
// Only valid for the local user
|
||||
QString accountLabel() const;
|
||||
void setAccountLabel(const QString &accountLabel);
|
||||
|
||||
Q_SIGNALS:
|
||||
void colorChanged(QColor _t1);
|
||||
void accountLabelChanged();
|
||||
|
||||
private:
|
||||
QColor m_color;
|
||||
|
||||
Reference in New Issue
Block a user