Remove workaround for QTBUG 93281
Seems to no longer be required
This commit is contained in:
@@ -289,12 +289,6 @@ void Controller::setActiveConnection(NeoChatConnection *connection)
|
|||||||
Q_EMIT activeConnectionChanged();
|
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()
|
void Controller::listenForNotifications()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_KUNIFIEDPUSH
|
#ifdef HAVE_KUNIFIEDPUSH
|
||||||
|
|||||||
@@ -86,13 +86,6 @@ public:
|
|||||||
|
|
||||||
bool isFlatpak() const;
|
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.
|
* @brief Start listening for notifications in dbus-activated mode.
|
||||||
* These notifications will quit the application when closed.
|
* These notifications will quit the application when closed.
|
||||||
|
|||||||
@@ -47,11 +47,6 @@ TextEdit {
|
|||||||
|
|
||||||
persistentSelection: true
|
persistentSelection: true
|
||||||
|
|
||||||
// Work around QTBUG 93281
|
|
||||||
Component.onCompleted: if (text.includes("<img")) {
|
|
||||||
Controller.forceRefreshTextDocument(root.textDocument, root)
|
|
||||||
}
|
|
||||||
|
|
||||||
text: "<style>
|
text: "<style>
|
||||||
table {
|
table {
|
||||||
width:100%;
|
width:100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user