Fix cut face list margin

master
huxingyi 2020-12-16 21:31:35 +09:30
parent 0c4a552059
commit c492b575b1
2 changed files with 2 additions and 4 deletions

View File

@ -42,7 +42,6 @@
#include "fbxfile.h"
#include "shortcuts.h"
#include "floatnumberwidget.h"
#include "cutfacelistwidget.h"
#include "scriptwidget.h"
#include "variablesxml.h"
#include "updatescheckwidget.h"
@ -2183,7 +2182,7 @@ void DocumentWindow::showCutFaceSettingPopup(const QPoint &globalPos, std::set<Q
std::vector<QPushButton *> buttons;
std::vector<QString> cutFaceList;
cutFaceLayout = new FlowLayout;
cutFaceLayout = new FlowLayout(nullptr, 0, 0);
auto updateCutFaceButtonState = [&](size_t index) {
for (size_t i = 0; i < cutFaceList.size(); ++i) {

View File

@ -21,7 +21,6 @@
#include "shortcuts.h"
#include "graphicscontainerwidget.h"
#include "flowlayout.h"
#include "cutfacelistwidget.h"
#include "imageforever.h"
#include "imagepreviewwidget.h"
@ -649,7 +648,7 @@ void PartWidget::showCutRotationSettingPopup(const QPoint &pos)
std::vector<QString> cutFaceList;
if (part->hasCutFaceFunction()) {
cutFaceLayout = new FlowLayout;
cutFaceLayout = new FlowLayout(nullptr, 0, 0);
auto updateCutFaceButtonState = [&](size_t index) {
for (size_t i = 0; i < cutFaceList.size(); ++i) {