Move global avatarSize property
This commit is contained in:
parent
877f4daa1a
commit
5658be5215
8 changed files with 17 additions and 20 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue