Remove workaround for QTBUG 93281

Seems to no longer be required
This commit is contained in:
Tobias Fella
2024-01-20 14:13:08 +01:00
parent 5f56fc1156
commit 4bd160cceb
3 changed files with 0 additions and 18 deletions

View File

@@ -289,12 +289,6 @@ void Controller::setActiveConnection(NeoChatConnection *connection)
Q_EMIT activeConnectionChanged();
}
void Controller::forceRefreshTextDocument(QQuickTextDocument *textDocument, QQuickItem *item)
{
// HACK: Workaround bug QTBUG 93281
connect(textDocument->textDocument(), SIGNAL(imagesLoaded()), item, SLOT(updateWholeDocument()));
}
void Controller::listenForNotifications()
{
#ifdef HAVE_KUNIFIEDPUSH

View File

@@ -86,13 +86,6 @@ public:
bool isFlatpak() const;
/**
* @brief Force a QQuickTextDocument to refresh when images are loaded.
*
* HACK: This is a workaround for QTBUG 93281.
*/
Q_INVOKABLE void forceRefreshTextDocument(QQuickTextDocument *textDocument, QQuickItem *item);
/**
* @brief Start listening for notifications in dbus-activated mode.
* These notifications will quit the application when closed.

View File

@@ -47,11 +47,6 @@ TextEdit {
persistentSelection: true
// Work around QTBUG 93281
Component.onCompleted: if (text.includes("<img")) {
Controller.forceRefreshTextDocument(root.textDocument, root)
}
text: "<style>
table {
width:100%;