mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-25 11:42:20 +08:00
Reorganize all parts of codes; Fix a bug that index page color is not correct when initialized.
33 lines
478 B
C++
33 lines
478 B
C++
#ifndef IMAGE_SHOW_H
|
|
#define IMAGE_SHOW_H
|
|
|
|
#include <QWidget>
|
|
#include <QMouseEvent>
|
|
|
|
#include "big_image.h"
|
|
|
|
class image_show : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit image_show(QWidget *parent = nullptr);
|
|
|
|
int desktop_w;
|
|
int desktop_h;
|
|
|
|
void setImage(QPixmap);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
private:
|
|
big_image *m_dialog;
|
|
QLabel *m_label;
|
|
QLabel image;
|
|
QPixmap m_image;
|
|
|
|
};
|
|
|
|
#endif // IMAGE_SHOW_H
|