2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_GRAPHICS_CONTAINER_WIDGET_H
|
|
|
|
#define DUST3D_GRAPHICS_CONTAINER_WIDGET_H
|
2018-08-27 08:50:40 +00:00
|
|
|
#include <QWidget>
|
|
|
|
#include <QResizeEvent>
|
|
|
|
|
|
|
|
class GraphicsContainerWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void containerSizeChanged(QSize size);
|
|
|
|
public:
|
|
|
|
GraphicsContainerWidget();
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
void setGraphicsWidget(QWidget *graphicsWidget);
|
|
|
|
private:
|
|
|
|
QWidget *m_graphicsWidget = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|