From 2b9e056eafb8a69a74d22e2ee00c66e3d200252a Mon Sep 17 00:00:00 2001 From: Karthik Nishanth Date: Mon, 13 May 2024 17:44:42 -0700 Subject: [PATCH] Remove workaround for QTBUG-93281 This is fixed in Qt 6.7.0 and signal `imagesLoaded` was removed. Nheko warns about `No such signal QTextDocument::imagesLoaded()` --- src/timeline/TimelineViewManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 1b2635b0..fd1d6d4e 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -620,6 +620,9 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven } //! WORKAROUND(Nico): for https://bugreports.qt.io/browse/QTBUG-93281 +// QTBUG-93281 Fixed in 6.7.0 +// https://github.com/qt/qtdeclarative/commit/7fb39a7accba014063e32ac41a58b77905bbd95b +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) void TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t, [[maybe_unused]] QQuickItem *i) @@ -630,6 +633,11 @@ TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t, } #endif } +#else +void +TimelineViewManager::fixImageRendering(QQuickTextDocument *, QQuickItem *) +{} +#endif using IgnoredUsers = mtx::events::EphemeralEvent;