From 1c6427872356462a908ad3e9816e2b330fde09d2 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sat, 14 Jun 2025 07:50:28 +0000 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=A8=205.11=20=E4=B8=8B?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo --- src/widgets/common/customlabel.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/widgets/common/customlabel.cpp b/src/widgets/common/customlabel.cpp index 9af89d4..26f9123 100644 --- a/src/widgets/common/customlabel.cpp +++ b/src/widgets/common/customlabel.cpp @@ -1,16 +1,15 @@ #include "customlabel.h" - #include -CustomLabel::CustomLabel(QWidget *parent, - Qt::WindowFlags f) +CustomLabel::CustomLabel(QWidget *parent, Qt::WindowFlags f) : QLabel(parent, f) { } QPixmap CustomLabel::pixmap() const { - return QLabel::pixmap(Qt::ReturnByValue); + const QPixmap *p = QLabel::pixmap(); + return p ? *p : QPixmap(); } void CustomLabel::setPixmap(const QPixmap &pixmap) -- Gitee