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()`
This commit is contained in:
Karthik Nishanth 2024-05-13 17:44:42 -07:00
parent 2142a8dd9c
commit 2b9e056eaf

View file

@ -620,6 +620,9 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven
} }
//! WORKAROUND(Nico): for https://bugreports.qt.io/browse/QTBUG-93281 //! 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 void
TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t, TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t,
[[maybe_unused]] QQuickItem *i) [[maybe_unused]] QQuickItem *i)
@ -630,6 +633,11 @@ TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t,
} }
#endif #endif
} }
#else
void
TimelineViewManager::fixImageRendering(QQuickTextDocument *, QQuickItem *)
{}
#endif
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>; using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;