summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimageiohandler.cpp
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2019-10-27 09:33:54 +0100
committerDavid Faure <david.faure@kdab.com>2019-11-01 17:13:20 +0100
commit0fb995492d377fde96b453680f3604f5991171c0 (patch)
tree19dba89bb1f7be89b5410998014618d92f4b54cd /src/gui/image/qimageiohandler.cpp
parentfa0a79a2bbafc8685a2ad13af5e9e3eb9bff8163 (diff)
QImageIOHandler: remove #if around virtual method name()
It makes -DQT_DISABLE_DEPRECATED_BEFORE=0x050d00 (in an application) trigger a binary incompatible change and crash. Change-Id: I9b9783d134821697180dc3fd8f2f69a51ddb7ac6 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/image/qimageiohandler.cpp')
-rw-r--r--src/gui/image/qimageiohandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/image/qimageiohandler.cpp b/src/gui/image/qimageiohandler.cpp
index 0e7b541cf2..a4f927a462 100644
--- a/src/gui/image/qimageiohandler.cpp
+++ b/src/gui/image/qimageiohandler.cpp
@@ -416,18 +416,16 @@ QByteArray QImageIOHandler::format() const
\sa read(), QIODevice::peek()
*/
-#if QT_DEPRECATED_SINCE(5, 13)
/*!
\obsolete
Use format() instead.
*/
-QByteArray QImageIOHandler::name() const
+QByteArray QImageIOHandler::name() const // ### Qt6: remove
{
return format();
}
-#endif
/*!
Writes the image \a image to the assigned device. Returns \c true on