Fix pose preview

master
Jeremy Hu 2019-06-18 08:16:59 +09:30
parent 56ddc1f8ee
commit e5f45eef83
1 changed files with 5 additions and 2 deletions

View File

@ -61,6 +61,9 @@ PoseEditWidget::PoseEditWidget(const Document *document, QWidget *parent) :
m_previewWidget->enableZoom(false); m_previewWidget->enableZoom(false);
m_previewWidget->move(-64, 0); m_previewWidget->move(-64, 0);
m_poseGraphicsWidget->setModelWidget(m_previewWidget);
containerWidget->setModelWidget(m_previewWidget);
connect(containerWidget, &GraphicsContainerWidget::containerSizeChanged, connect(containerWidget, &GraphicsContainerWidget::containerSizeChanged,
graphicsWidget, &SkeletonGraphicsWidget::canvasResized); graphicsWidget, &SkeletonGraphicsWidget::canvasResized);
@ -141,9 +144,9 @@ PoseEditWidget::PoseEditWidget(const Document *document, QWidget *parent) :
QHBoxLayout *sideButtonLayout = new QHBoxLayout; QHBoxLayout *sideButtonLayout = new QHBoxLayout;
sideButtonLayout->setSpacing(0); sideButtonLayout->setSpacing(0);
sideButtonLayout->addStretch(); sideButtonLayout->addStretch();
sideButtonLayout->addWidget(leftSideVisibleButton);
sideButtonLayout->addWidget(middleSideVisibleButton);
sideButtonLayout->addWidget(rightSideVisibleButton); sideButtonLayout->addWidget(rightSideVisibleButton);
sideButtonLayout->addWidget(middleSideVisibleButton);
sideButtonLayout->addWidget(leftSideVisibleButton);
sideButtonLayout->addStretch(); sideButtonLayout->addStretch();
QHBoxLayout *sliderLayout = new QHBoxLayout; QHBoxLayout *sliderLayout = new QHBoxLayout;