MeshPart: apply clang format

This commit is contained in:
wmayer
2023-09-02 01:36:28 +02:00
committed by wwmayer
parent c2bda2f756
commit 6fb2bcafe8
14 changed files with 633 additions and 508 deletions

View File

@@ -24,9 +24,9 @@
#include <Gui/View3DInventor.h>
#include "CurveOnMesh.h"
#include "TaskCurveOnMesh.h"
#include "ui_TaskCurveOnMesh.h"
#include "CurveOnMesh.h"
using namespace MeshPartGui;
@@ -38,8 +38,7 @@ CurveOnMeshWidget::CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent)
, myView(view)
{
ui->setupUi(this);
connect(ui->startButton, &QPushButton::clicked,
this, &CurveOnMeshWidget::onStartButtonClicked);
connect(ui->startButton, &QPushButton::clicked, this, &CurveOnMeshWidget::onStartButtonClicked);
this->setup();
}
@@ -61,12 +60,13 @@ void CurveOnMeshWidget::setup()
ui->continuity->addItem(QString::fromLatin1("C3"), static_cast<int>(GeomAbs_C3));
ui->continuity->setCurrentIndex(2);
for (int i=0; i<8; i++)
ui->maxDegree->addItem(QString::number(i+1));
for (int i = 0; i < 8; i++) {
ui->maxDegree->addItem(QString::number(i + 1));
}
ui->maxDegree->setCurrentIndex(4);
}
void CurveOnMeshWidget::changeEvent(QEvent *e)
void CurveOnMeshWidget::changeEvent(QEvent* e)
{
if (e->type() == QEvent::LanguageChange) {
ui->retranslateUi(this);
@@ -97,9 +97,7 @@ void CurveOnMeshWidget::reject()
TaskCurveOnMesh::TaskCurveOnMesh(Gui::View3DInventor* view)
{
widget = new CurveOnMeshWidget(view);
taskbox = new Gui::TaskView::TaskBox(
QPixmap(),
widget->windowTitle(), true, nullptr);
taskbox = new Gui::TaskView::TaskBox(QPixmap(), widget->windowTitle(), true, nullptr);
taskbox->groupLayout()->addWidget(widget);
Content.push_back(taskbox);
}