18 lines
431 B
C++
18 lines
431 B
C++
|
#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;
|
||
|
}
|