From 6025803547477884fe1d027b7cb54a70429337c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Mon, 2 Mar 2020 09:52:54 +0100 Subject: Remove deprecated function name() It seems that it has been deprecated since 5.13 Change-Id: I68bf10b068bedddbfc3b3f0a112f5ab5291bd5d7 Reviewed-by: Shawn Rutledge --- src/plugins/imageformats/pdf/qpdfiohandler.cpp | 5 ----- src/plugins/imageformats/pdf/qpdfiohandler_p.h | 1 - 2 files changed, 6 deletions(-) (limited to 'src/plugins/imageformats') diff --git a/src/plugins/imageformats/pdf/qpdfiohandler.cpp b/src/plugins/imageformats/pdf/qpdfiohandler.cpp index 739e8b34c..98e4f4663 100644 --- a/src/plugins/imageformats/pdf/qpdfiohandler.cpp +++ b/src/plugins/imageformats/pdf/qpdfiohandler.cpp @@ -85,11 +85,6 @@ int QPdfIOHandler::imageCount() const return ret; } -QByteArray QPdfIOHandler::name() const -{ - return m_doc.metaData(QPdfDocument::MetaDataField::Title).toString().toLocal8Bit(); -} - bool QPdfIOHandler::read(QImage *image) { if (load(device())) { diff --git a/src/plugins/imageformats/pdf/qpdfiohandler_p.h b/src/plugins/imageformats/pdf/qpdfiohandler_p.h index ca0a27581..99a91154c 100644 --- a/src/plugins/imageformats/pdf/qpdfiohandler_p.h +++ b/src/plugins/imageformats/pdf/qpdfiohandler_p.h @@ -62,7 +62,6 @@ public: int currentImageNumber() const override; QRect currentImageRect() const override; int imageCount() const override; - QByteArray name() const override; bool read(QImage *image) override; QVariant option(ImageOption option) const override; void setOption(ImageOption option, const QVariant & value) override; -- cgit v1.2.3