From 94187c31d3a4540fa05e5ce4f37086c55d18b9c5 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Tue, 24 Mar 2020 21:24:55 +0930 Subject: [PATCH] Update cut face list UI --- src/documentwindow.cpp | 3 ++- src/partwidget.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index 7e1c66ed..3a75cb28 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -1886,13 +1886,14 @@ void DocumentWindow::showCutFaceSettingPopup(const QPoint &globalPos, std::setaddWidget(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); diff --git a/src/partwidget.cpp b/src/partwidget.cpp index 539959e7..ff79a5e8 100644 --- a/src/partwidget.cpp +++ b/src/partwidget.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #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);