From 4bd160cceb8966321c8e9a325cad00ab9cb7ff6a Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 20 Jan 2024 14:13:08 +0100 Subject: [PATCH] Remove workaround for QTBUG 93281 Seems to no longer be required --- src/controller.cpp | 6 ------ src/controller.h | 7 ------- src/qml/RichLabel.qml | 5 ----- 3 files changed, 18 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index 17f83f724..75d064260 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -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 diff --git a/src/controller.h b/src/controller.h index 528019753..4e9b8eb27 100644 --- a/src/controller.h +++ b/src/controller.h @@ -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. diff --git a/src/qml/RichLabel.qml b/src/qml/RichLabel.qml index 59c7d93ef..ba34c6f7b 100644 --- a/src/qml/RichLabel.qml +++ b/src/qml/RichLabel.qml @@ -47,11 +47,6 @@ TextEdit { persistentSelection: true - // Work around QTBUG 93281 - Component.onCompleted: if (text.includes(" table { width:100%;