summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2020-03-02 09:52:54 +0100
committerJan Arve Sæther <jan-arve.saether@qt.io>2020-03-09 12:34:54 +0100
commit6025803547477884fe1d027b7cb54a70429337c6 (patch)
tree3ecde35a1f9e34005372b7d9ef06813d341ecf6a /src/plugins/imageformats
parentd183801ba254abb859fe5aeb59f3ca05fc5d2a20 (diff)
Remove deprecated function name()
It seems that it has been deprecated since 5.13 Change-Id: I68bf10b068bedddbfc3b3f0a112f5ab5291bd5d7 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/plugins/imageformats')
-rw-r--r--src/plugins/imageformats/pdf/qpdfiohandler.cpp5
-rw-r--r--src/plugins/imageformats/pdf/qpdfiohandler_p.h1
2 files changed, 0 insertions, 6 deletions
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;