Sketcher: Fix lints

This commit is contained in:
Abdullah Tahiri
2023-11-08 15:13:53 +01:00
committed by abdullahtahiriyo
parent 2f40dd34c8
commit f56eebea64
6 changed files with 9 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ EditableDatumLabel::EditableDatumLabel(View3DInventorViewer* view,
, viewer(view)
, spinBox(nullptr)
, cameraSensor(nullptr)
, function(Function::Positioning)
{
// NOLINTBEGIN
root = new SoAnnotation;

View File

@@ -45,13 +45,13 @@ class GuiExport EditableDatumLabel : public QObject
Q_DISABLE_COPY(EditableDatumLabel)
public:
EditableDatumLabel(View3DInventorViewer* view, const Base::Placement& plc, SbColor color, bool autoDistance = false, bool avoidMouseCursor = false);
enum class Function {
Positioning,
Dimensioning
};
EditableDatumLabel(View3DInventorViewer* view, const Base::Placement& plc, SbColor color, bool autoDistance = false, bool avoidMouseCursor = false);
~EditableDatumLabel() override;
void activate();

View File

@@ -1263,7 +1263,7 @@ public:
class DrawSketchHandlerDimension : public DrawSketchHandler
{
public:
DrawSketchHandlerDimension(std::vector<std::string> SubNames)
explicit DrawSketchHandlerDimension(std::vector<std::string> SubNames)
: specialConstraint(SpecialConstraint::None)
, availableConstraint(AvailableConstraint::FIRST)
, previousOnSketchPos(Base::Vector2d(0.f, 0.f))

View File

@@ -79,7 +79,8 @@ class DrawSketchHandlerLine: public DrawSketchHandlerLineBase
friend DSHLineControllerBase;
public:
DrawSketchHandlerLine(ConstructionMethod constrMethod = ConstructionMethod::OnePointLengthAngle)
explicit DrawSketchHandlerLine(
ConstructionMethod constrMethod = ConstructionMethod::OnePointLengthAngle)
: DrawSketchHandlerLineBase(constrMethod) {};
~DrawSketchHandlerLine() override = default;
@@ -271,7 +272,7 @@ void DSHLineController::configureToolWidget()
{
if (!init) { // Code to be executed only upon initialisation
QStringList names = {QStringLiteral("Point, length, angle"),
QStringLiteral("Point, width, heigth"),
QStringLiteral("Point, width, height"),
QStringLiteral("2 points")};
toolWidget->setComboboxElements(WCombobox::FirstCombo, names);

View File

@@ -68,7 +68,7 @@ class DrawSketchHandlerPolygon: public DrawSketchHandlerPolygonBase
friend DSHPolygonControllerBase;
public:
DrawSketchHandlerPolygon(int corners = 6)
explicit DrawSketchHandlerPolygon(int corners = 6)
: numberOfCorners(corners)
{}
~DrawSketchHandlerPolygon() override = default;

View File

@@ -479,7 +479,7 @@ public:
class ToolManager
{
public:
ToolManager(ViewProviderSketch* vp);
explicit ToolManager(ViewProviderSketch* vp);
/** @brief Factory function returning a tool widget of the type appropriate for the current
* active tool. If no tool is active, expect a nullptr.