XPlor/app/imagewidget.h
2025-07-10 00:04:52 -04:00

32 lines
524 B
C++

#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H
#include "enums.h"
#include "dds_structs.h"
#include "d3dbsp_structs.h"
#include "ipak_structs.h"
#include <QWidget>
namespace Ui {
class ImageWidget;
}
class ImageWidget : public QWidget
{
Q_OBJECT
public:
explicit ImageWidget(QWidget *parent = nullptr);
~ImageWidget();
void SetImage(std::shared_ptr<QImage> aImage);
std::shared_ptr<QImage> GetImage();
private:
std::shared_ptr<QImage> mImage;
Ui::ImageWidget *ui;
};
#endif // IMAGEWIDGET_H