diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-05 13:58:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-05 13:58:00 +0200 |
commit | ec6f0f92964614588ea88e13a1030952bec904e7 (patch) | |
tree | 9dd0f306d1334eee0794cb6fc09398e596a240fc /src/timeline/TimelineViewManager.h | |
parent | Fix download button (diff) | |
download | nheko-ec6f0f92964614588ea88e13a1030952bec904e7.tar.xz |
Don't use direct image response objects anymore
Diffstat (limited to 'src/timeline/TimelineViewManager.h')
-rw-r--r-- | src/timeline/TimelineViewManager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h index e3ed4991..3b405142 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h @@ -61,7 +61,7 @@ public: Q_INVOKABLE bool isInitialSync() const { return isInitialSync_; } bool isNarrowView() const { return isNarrowView_; } bool isWindowFocused() const { return isWindowFocused_; } - Q_INVOKABLE void openImageOverlay(QString mxcUrl, QString eventId) const; + Q_INVOKABLE void openImageOverlay(QString mxcUrl, QString eventId); Q_INVOKABLE QColor userColor(QString id, QColor background); Q_INVOKABLE QString escapeEmoji(QString str) const; @@ -92,6 +92,7 @@ signals: void narrowViewChanged(); void focusChanged(); void focusInput(); + void openImageOverlayInternalCb(QString eventId, QImage img); public slots: void updateReadReceipts(const QString &room_id, const std::vector<QString> &event_ids); @@ -146,6 +147,9 @@ public slots: void backToRooms() { emit showRoomList(); } QObject *completerFor(QString completerName, QString roomId = ""); +private slots: + void openImageOverlayInternal(QString eventId, QImage img); + private: #ifdef USE_QUICK_VIEW QQuickView *view; |