Update cut face list UI

master
huxingyi 2020-03-24 21:24:55 +09:30
parent 772c3c8a75
commit 94187c31d3
2 changed files with 5 additions and 2 deletions

View File

@ -1886,13 +1886,14 @@ void DocumentWindow::showCutFaceSettingPopup(const QPoint &globalPos, std::set<Q
standardFacesLayout->addWidget(button);
buttons[i] = button;
}
standardFacesLayout->addStretch();
if (nullptr != node) {
updateCutFaceButtonState((size_t)node->cutFace);
}
QVBoxLayout *popupLayout = new QVBoxLayout;
popupLayout->addLayout(rotationLayout);
popupLayout->addSpacing(10);
popupLayout->addWidget(Theme::createHorizontalLineWidget());
popupLayout->addLayout(standardFacesLayout);
popupLayout->addWidget(cutFaceListWidget);

View File

@ -8,6 +8,7 @@
#include <QFileDialog>
#include <QSizePolicy>
#include <QCheckBox>
#include <QLabel>
#include "partwidget.h"
#include "theme.h"
#include "floatnumberwidget.h"
@ -608,12 +609,13 @@ void PartWidget::showCutRotationSettingPopup(const QPoint &pos)
standardFacesLayout->addWidget(button);
buttons[i] = button;
}
standardFacesLayout->addStretch();
updateCutFaceButtonState((size_t)part->cutFace);
QVBoxLayout *popupLayout = new QVBoxLayout;
popupLayout->addLayout(rotationLayout);
popupLayout->addLayout(hollowThicknessLayout);
popupLayout->addSpacing(10);
popupLayout->addWidget(Theme::createHorizontalLineWidget());
popupLayout->addLayout(standardFacesLayout);
popupLayout->addWidget(cutFaceListWidget);