mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
@@ -1,16 +1,15 @@
|
|||||||
#include "customlabel.h"
|
#include "customlabel.h"
|
||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
|
|
||||||
CustomLabel::CustomLabel(QWidget *parent,
|
CustomLabel::CustomLabel(QWidget *parent, Qt::WindowFlags f)
|
||||||
Qt::WindowFlags f)
|
|
||||||
: QLabel(parent, f)
|
: QLabel(parent, f)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap CustomLabel::pixmap() const
|
QPixmap CustomLabel::pixmap() const
|
||||||
{
|
{
|
||||||
return QLabel::pixmap(Qt::ReturnByValue);
|
const QPixmap *p = QLabel::pixmap();
|
||||||
|
return p ? *p : QPixmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomLabel::setPixmap(const QPixmap &pixmap)
|
void CustomLabel::setPixmap(const QPixmap &pixmap)
|
||||||
|
|||||||
Reference in New Issue
Block a user