From 99258db3b7b8a998b0e079d8aec4141ff43ff5a1 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sun, 19 Apr 2020 12:36:01 +0300 Subject: [PATCH] Fix QLabel with no "picture" feature Change-Id: I97bc58438791402168bcc58326f199b5675e75ff Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qlabel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/widgets/qlabel.cpp b/src/widgets/widgets/qlabel.cpp index f373ecfab4..152c250f69 100644 --- a/src/widgets/widgets/qlabel.cpp +++ b/src/widgets/widgets/qlabel.cpp @@ -186,6 +186,7 @@ QLabelPrivate::~QLabelPrivate() {fowler}{GUI Design Handbook: Label} */ +#ifndef QT_NO_PICTURE /*! \fn QPicture QLabel::picture(Qt::ReturnByValueConstant) const \obsolete Use the overload without argument instead. @@ -210,6 +211,7 @@ QPicture QLabel::picture() const return *(d->picture); return QPicture(); } +#endif // QT_NO_PICTURE /*!