From e5f45eef834998b789f607eecf95001c4d5c40bc Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Tue, 18 Jun 2019 08:16:59 +0930 Subject: [PATCH] Fix pose preview --- src/poseeditwidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/poseeditwidget.cpp b/src/poseeditwidget.cpp index 3a3471bd..6a11d29f 100644 --- a/src/poseeditwidget.cpp +++ b/src/poseeditwidget.cpp @@ -61,6 +61,9 @@ PoseEditWidget::PoseEditWidget(const Document *document, QWidget *parent) : m_previewWidget->enableZoom(false); m_previewWidget->move(-64, 0); + m_poseGraphicsWidget->setModelWidget(m_previewWidget); + containerWidget->setModelWidget(m_previewWidget); + connect(containerWidget, &GraphicsContainerWidget::containerSizeChanged, graphicsWidget, &SkeletonGraphicsWidget::canvasResized); @@ -141,9 +144,9 @@ PoseEditWidget::PoseEditWidget(const Document *document, QWidget *parent) : QHBoxLayout *sideButtonLayout = new QHBoxLayout; sideButtonLayout->setSpacing(0); sideButtonLayout->addStretch(); - sideButtonLayout->addWidget(leftSideVisibleButton); - sideButtonLayout->addWidget(middleSideVisibleButton); sideButtonLayout->addWidget(rightSideVisibleButton); + sideButtonLayout->addWidget(middleSideVisibleButton); + sideButtonLayout->addWidget(leftSideVisibleButton); sideButtonLayout->addStretch(); QHBoxLayout *sliderLayout = new QHBoxLayout;