mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-04 17:42:20 +08:00
commit
3866bf07b1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user