From 2a2499ecf981bf06c286fc6ee1556a49e95554b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=85=E5=85=83=E5=A4=A9=E9=81=93?= Date: Wed, 21 Jun 2023 10:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E6=96=87=E4=BB=B6=E5=B4=A9=E6=BA=83=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PostInterface/AnimationToolBar.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/PostInterface/AnimationToolBar.cpp b/src/PostInterface/AnimationToolBar.cpp index c67ae06..8a40471 100644 --- a/src/PostInterface/AnimationToolBar.cpp +++ b/src/PostInterface/AnimationToolBar.cpp @@ -27,9 +27,8 @@ namespace Post { _generateAni = new GenerateAnimation(_aniAviTool); connect(_treeWidget, SIGNAL(currentRenderDataChanged(RenderDataObject*)), this, SLOT(on_currentRenderDataChanged(RenderDataObject*))); - connect(_treeWidget, SIGNAL(clearAllItemSig()), this, - SLOT(clearAllRenderObjSlot())); - + connect(_treeWidget, SIGNAL(clearAllItemSig()), this, SLOT(clearAllRenderObjSlot())); + connect(this, SIGNAL(sig_generateAvi()), _generateAni, SLOT(on_generate())); connect(this, SIGNAL(sig_terminateGenerateAvi()), _generateAni, SLOT(on_finishSaveAvi())); } @@ -277,7 +276,7 @@ namespace Post { _aniAction->setText(tr("run")); _runAnimation = false; } - + int totalCount = _unSteadyObj->getTotalCount(); if(totalCount < 2) return; @@ -314,14 +313,14 @@ namespace Post { } } - void AnimationToolBar::clearAllRenderObjSlot() { + void AnimationToolBar::clearAllRenderObjSlot() + { this->setEnabled(false); this->setEnableBtn(false); - _totalLabel->setText(QString(tr("Total: %1")).arg(0)); - _spinBox->setMaximum(0); - _spinBox->setValue(0); - - } + //_totalLabel->setText(QString(tr("Total: %1")).arg(0)); + //_spinBox->setMaximum(0); + //_spinBox->setValue(0); + } void AnimationToolBar::initToolBar() {