Add workaround for TextEdit not rerendering after image loaded
fixes #541
This commit is contained in:
parent
47899ee7ed
commit
be0576f6a1
3 changed files with 19 additions and 0 deletions
|
|
@ -681,3 +681,13 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven
|
|||
},
|
||||
*e);
|
||||
}
|
||||
|
||||
//! WORKAROUND(Nico): for https://bugreports.qt.io/browse/QTBUG-93281
|
||||
void
|
||||
TimelineViewManager::fixImageRendering(QQuickTextDocument *t, QQuickItem *i)
|
||||
{
|
||||
if (t) {
|
||||
QObject::connect(
|
||||
t->textDocument(), SIGNAL(imagesLoaded()), i, SLOT(updateWholeDocument()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue