dust3d/src/graphicscontainerwidget.cpp

18 lines
431 B
C++
Raw Normal View History

#include "graphicscontainerwidget.h"
GraphicsContainerWidget::GraphicsContainerWidget() :
m_graphicsWidget(nullptr)
{
}
void GraphicsContainerWidget::resizeEvent(QResizeEvent *event)
{
if (m_graphicsWidget && m_graphicsWidget->size() != event->size())
emit containerSizeChanged(event->size());
}
void GraphicsContainerWidget::setGraphicsWidget(QWidget *graphicsWidget)
{
m_graphicsWidget = graphicsWidget;
}