MeshPart: apply clang format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user