mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
4.0
This commit is contained in:
32
src/backend/image_show.h
Normal file
32
src/backend/image_show.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef IMAGE_SHOW_H
|
||||
#define IMAGE_SHOW_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QMouseEvent>
|
||||
|
||||
#include "widgets/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);
|
||||
~image_show();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
big_image *m_dialog;
|
||||
QLabel *m_label;
|
||||
QLabel image;
|
||||
QPixmap m_image;
|
||||
};
|
||||
|
||||
#endif // IMAGE_SHOW_H
|
||||
Reference in New Issue
Block a user