!341 支持在 5.11 下编译 480

Merge pull request !341 from shenmo/dev
This commit is contained in:
shenmo 2025-06-14 07:53:38 +00:00 committed by Gitee
commit 3866bf07b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,16 +1,15 @@
#include "customlabel.h"
#include <QGuiApplication>
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)