summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-05-27 22:28:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2024-05-27 22:28:28 +0200
commit1c5f747856031c8e8df161f2d425bb6cece01bcd (patch)
treed007eab11fe637ad920b8df9950b7875285f0542 /src/timeline/TimelineViewManager.cpp
parentfix marking messages as read by scrolling (diff)
downloadnheko-1c5f747856031c8e8df161f2d425bb6cece01bcd.tar.xz
Disable image loaded workaround for Qt 6.7 and up
(since it is fixed there)
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineViewManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index 479fe7e1..bf2d987c 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -615,11 +615,14 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven
 
 //! WORKAROUND(Nico): for https://bugreports.qt.io/browse/QTBUG-93281
 void
-TimelineViewManager::fixImageRendering(QQuickTextDocument *t, QQuickItem *i)
+TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t,
+                                       [[maybe_unused]] QQuickItem *i)
 {
+#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
     if (t) {
         QObject::connect(t->textDocument(), SIGNAL(imagesLoaded()), i, SLOT(updateWholeDocument()));
     }
+#endif
 }
 
 using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;