mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
Reorganize all parts of codes; Fix a bug that index page color is not correct when initialized.
28 lines
461 B
C++
28 lines
461 B
C++
#ifndef BIG_IMAGE_H
|
|
#define BIG_IMAGE_H
|
|
|
|
#include <QMouseEvent>
|
|
#include <QLabel>
|
|
|
|
#include <DBlurEffectWidget>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class big_image : public DBlurEffectWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit big_image(DBlurEffectWidget *parent = nullptr);
|
|
|
|
QLabel *m_image;
|
|
|
|
void setimage(QPixmap);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
void focusOutEvent(QFocusEvent *event) override;
|
|
};
|
|
|
|
#endif // BIG_IMAGE_H
|