From 8cccf0a76b82726ce987690d783a1b912aa6bba5 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 8 Jun 2020 16:50:01 +0200 Subject: Remove deprecated methods and address some ### Qt 6 comments in gui/text Change-Id: If1ed58ecbb13df88bdb1d72caccfd01c14d42eac Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qtextimagehandler.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/gui/text/qtextimagehandler.cpp') diff --git a/src/gui/text/qtextimagehandler.cpp b/src/gui/text/qtextimagehandler.cpp index 0d87a2135d..cae8304438 100644 --- a/src/gui/text/qtextimagehandler.cpp +++ b/src/gui/text/qtextimagehandler.cpp @@ -95,14 +95,6 @@ static QPixmap getPixmap(QTextDocument *doc, const QTextImageFormat &format, con } if (pm.isNull()) { -#if 0 - QString context; - // ### Qt5 - QTextBrowser *browser = qobject_cast(doc->parent()); - if (browser) - context = browser->source().toString(); -#endif - // try direct loading QImage img; if (name.isEmpty() || !img.load(name)) return QPixmap(QLatin1String(":/qt-project.org/styles/commonstyle/images/file-16.png")); @@ -177,15 +169,6 @@ static QImage getImage(QTextDocument *doc, const QTextImageFormat &format, const } if (image.isNull()) { -#if 0 - QString context; - // ### Qt5 - QTextBrowser *browser = qobject_cast(doc->parent()); - if (browser) - context = browser->source().toString(); -#endif - // try direct loading - if (name.isEmpty() || !image.load(name)) return QImage(QLatin1String(":/qt-project.org/styles/commonstyle/images/file-16.png")); -- cgit v1.2.3