mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
Disable image loaded workaround for Qt 6.7 and up
(since it is fixed there)
This commit is contained in:
parent
643be19b64
commit
1c5f747856
1 changed files with 4 additions and 1 deletions
|
@ -615,11 +615,14 @@ 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
|
||||||
void
|
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) {
|
if (t) {
|
||||||
QObject::connect(t->textDocument(), SIGNAL(imagesLoaded()), i, SLOT(updateWholeDocument()));
|
QObject::connect(t->textDocument(), SIGNAL(imagesLoaded()), i, SLOT(updateWholeDocument()));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;
|
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;
|
||||||
|
|
Loading…
Reference in a new issue