Reorganize TimelineView to prepare porting the room list

This commit is contained in:
Nicolas Werner 2021-05-14 15:23:32 +02:00
parent 5658be5215
commit 39a43ad4ab
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
10 changed files with 410 additions and 340 deletions

View file

@ -14,6 +14,9 @@ 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)
Q_PROPERTY(int paddingSmall READ paddingSmall CONSTANT)
Q_PROPERTY(int paddingMedium READ paddingMedium CONSTANT)
Q_PROPERTY(int paddingLarge READ paddingLarge CONSTANT)
public:
Nheko();
@ -23,6 +26,10 @@ public:
int avatarSize() const { return 40; }
int paddingSmall() const { return 4; }
int paddingMedium() const { return 8; }
int paddingLarge() const { return 20; }
Q_INVOKABLE void openLink(QString link) const;
signals: