From ec6f0f92964614588ea88e13a1030952bec904e7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 5 Apr 2021 13:58:00 +0200 Subject: Don't use direct image response objects anymore --- src/timeline/TimelineViewManager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/timeline/TimelineViewManager.h') 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 &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; -- cgit 1.5.1