20 lines
382 B
C++
20 lines
382 B
C++
#ifndef IMAGEVIEW_H
|
|
#define IMAGEVIEW_H
|
|
|
|
#include <QLabel>
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
|
|
class ImageView : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
double maxHeight, maxWidth;
|
|
public:
|
|
ImageView(QWidget *parent=nullptr);
|
|
// ImageView(QWidget *parent=nullptr, std::string path="");
|
|
void wheelEvent(QWheelEvent*);
|
|
void setImage(std::string);
|
|
};
|
|
#endif // IMAGEVIEW_H
|