Move global avatarSize property

This commit is contained in:
Nicolas Werner 2021-05-13 11:32:20 +02:00
parent 877f4daa1a
commit 5658be5215
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 17 additions and 20 deletions

View file

@ -13,6 +13,7 @@ class Nheko : public QObject
Q_PROPERTY(QPalette colors READ colors NOTIFY colorsChanged)
Q_PROPERTY(QPalette inactiveColors READ inactiveColors NOTIFY colorsChanged)
Q_PROPERTY(int avatarSize READ avatarSize CONSTANT)
public:
Nheko();
@ -20,6 +21,8 @@ public:
QPalette colors() const;
QPalette inactiveColors() const;
int avatarSize() const { return 40; }
Q_INVOKABLE void openLink(QString link) const;
signals: