fix typo in fuction-name (looked like a mixture of French and English)

This commit is contained in:
plc-user
2025-02-14 16:47:39 +01:00
parent 43f0107eb1
commit 3471140b64
16 changed files with 55 additions and 55 deletions

View File

@@ -120,7 +120,7 @@ void ElementPrimitiveDecorator::setItems(const QList<CustomElementPart *> &items
if (focusItem() != this) {
setFocus();
}
adjusteHandlerPos();
adjustHandlerPos();
}
/**
@@ -356,7 +356,7 @@ void ElementPrimitiveDecorator::adjustEffectiveBoundingRect()
prepareGeometryChange();
effective_bounding_rect_ = modified_bounding_rect_ | effective_bounding_rect_;
update();
adjusteHandlerPos();
adjustHandlerPos();
}
/**
@@ -492,9 +492,9 @@ QVector<QPointF> ElementPrimitiveDecorator::getResizingsPoints() const
}
/**
@brief ElementPrimitiveDecorator::adjusteHandlerPos
@brief ElementPrimitiveDecorator::adjustHandlerPos
*/
void ElementPrimitiveDecorator::adjusteHandlerPos()
void ElementPrimitiveDecorator::adjustHandlerPos()
{
QVector <QPointF> points_vector = mapToScene(getResizingsPoints());
for (int i = 0 ; i < points_vector.size() ; ++i)

View File

@@ -94,7 +94,7 @@ class ElementPrimitiveDecorator : public QGraphicsObject
private:
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -207,7 +207,7 @@ QVariant PartArc::itemChange(QGraphicsItem::GraphicsItemChange change, const QVa
{
if (change == ItemPositionHasChanged)
{
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneChange)
{
@@ -293,9 +293,9 @@ void PartArc::switchResizeMode()
}
/**
@brief PartArc::adjusteHandlerPos
@brief PartArc::adjustHandlerPos
*/
void PartArc::adjusteHandlerPos()
void PartArc::adjustHandlerPos()
{
if (m_handler_vector.isEmpty())
return;

View File

@@ -56,9 +56,9 @@ class PartArc : public AbstractPartEllipse
QPainterPath shape() const override;
QPainterPath shadowShape() const override;
void setRect(const QRectF &rect) override {AbstractPartEllipse::setRect(rect); adjusteHandlerPos();}
void setStartAngle(const int &start_angle) override {AbstractPartEllipse::setStartAngle(start_angle); adjusteHandlerPos();}
void setSpanAngle(const int &span_angle) override {AbstractPartEllipse::setSpanAngle(span_angle); adjusteHandlerPos();}
void setRect(const QRectF &rect) override {AbstractPartEllipse::setRect(rect); adjustHandlerPos();}
void setStartAngle(const int &start_angle) override {AbstractPartEllipse::setStartAngle(start_angle); adjustHandlerPos();}
void setSpanAngle(const int &span_angle) override {AbstractPartEllipse::setSpanAngle(span_angle); adjustHandlerPos();}
QRectF sceneGeometricRect() const override;
void addHandler() override;
@@ -71,7 +71,7 @@ class PartArc : public AbstractPartEllipse
private:
void switchResizeMode();
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -186,7 +186,7 @@ QVariant PartEllipse::itemChange(QGraphicsItem::GraphicsItemChange change, const
{
if (change == ItemPositionHasChanged)
{
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneChange)
{
@@ -253,9 +253,9 @@ void PartEllipse::switchResizeMode()
}
/**
@brief PartEllipse::adjusteHandlerPos
@brief PartEllipse::adjustHandlerPos
*/
void PartEllipse::adjusteHandlerPos()
void PartEllipse::adjustHandlerPos()
{
if (m_handler_vector.isEmpty())
return;
@@ -305,7 +305,7 @@ void PartEllipse::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsS
else
setRect(QetGraphicsHandlerUtility::mirrorRectForPosAtIndex(m_rect, new_pos, m_vector_index));
adjusteHandlerPos();
adjustHandlerPos();
}
/**

View File

@@ -56,7 +56,7 @@ class PartEllipse : public AbstractPartEllipse
void fromXml (const QDomElement &) override;
QPainterPath shape() const override;
QPainterPath shadowShape() const override;
void setRect(const QRectF &rect) override {AbstractPartEllipse::setRect(rect); adjusteHandlerPos();}
void setRect(const QRectF &rect) override {AbstractPartEllipse::setRect(rect); adjustHandlerPos();}
void addHandler() override;
void removeHandler() override;
@@ -68,7 +68,7 @@ class PartEllipse : public AbstractPartEllipse
private:
void switchResizeMode();
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -164,7 +164,7 @@ QVariant PartLine::itemChange(QGraphicsItem::GraphicsItemChange change, const QV
{
if (change == ItemPositionHasChanged)
{
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneChange)
{
@@ -215,10 +215,10 @@ bool PartLine::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
}
/**
@brief PartLine::adjusteHandlerPos
@brief PartLine::adjustHandlerPos
Adjust the position of the handler item
*/
void PartLine::adjusteHandlerPos()
void PartLine::adjustHandlerPos()
{
if(m_handler_vector.isEmpty())
return;
@@ -272,7 +272,7 @@ void PartLine::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsScen
emit lineChanged();
adjusteHandlerPos();
adjustHandlerPos();
}
/**
@@ -540,7 +540,7 @@ void PartLine::setLine(const QLineF &line)
if (m_line == line) return;
prepareGeometryChange();
m_line = line;
adjusteHandlerPos();
adjustHandlerPos();
emit lineChanged();
}

View File

@@ -105,7 +105,7 @@ class PartLine : public CustomElementGraphicPart
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event) override;
private:
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -219,7 +219,7 @@ void PartPolygon::setPolygon(const QPolygonF &polygon)
if (m_polygon == polygon) return;
prepareGeometryChange();
m_polygon = polygon;
adjusteHandlerPos();
adjustHandlerPos();
emit polygonChanged();
}
@@ -320,7 +320,7 @@ QVariant PartPolygon::itemChange(QGraphicsItem::GraphicsItemChange change, const
{
if (change == ItemPositionHasChanged)
{
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneChange)
{
@@ -395,9 +395,9 @@ void PartPolygon::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
}
/**
@brief PartPolygon::adjusteHandlerPos
@brief PartPolygon::adjustHandlerPos
*/
void PartPolygon::adjusteHandlerPos()
void PartPolygon::adjustHandlerPos()
{
if(m_handler_vector.isEmpty())
return;
@@ -446,7 +446,7 @@ void PartPolygon::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsS
prepareGeometryChange();
m_polygon.replace(m_vector_index, new_pos);
adjusteHandlerPos();
adjustHandlerPos();
emit polygonChanged();
}

View File

@@ -99,7 +99,7 @@ class PartPolygon : public CustomElementGraphicPart
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) override;
private:
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -147,7 +147,7 @@ void PartRectangle::setRect(const QRectF &rect)
if (rect == m_rect) return;
prepareGeometryChange();
m_rect = rect;
adjusteHandlerPos();
adjustHandlerPos();
emit rectChanged();
}
@@ -155,7 +155,7 @@ void PartRectangle::setXRadius(qreal X)
{
m_xRadius = X;
update();
adjusteHandlerPos();
adjustHandlerPos();
emit XRadiusChanged();
}
@@ -163,7 +163,7 @@ void PartRectangle::setYRadius(qreal Y)
{
m_yRadius = Y;
update();
adjusteHandlerPos();
adjustHandlerPos();
emit YRadiusChanged();
}
@@ -303,7 +303,7 @@ QVariant PartRectangle::itemChange(QGraphicsItem::GraphicsItemChange change, con
{
if (change == ItemPositionHasChanged)
{
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneChange)
{
@@ -387,9 +387,9 @@ void PartRectangle::switchResizeMode()
}
/**
@brief PartRectangle::adjusteHandlerPos
@brief PartRectangle::adjustHandlerPos
*/
void PartRectangle::adjusteHandlerPos()
void PartRectangle::adjustHandlerPos()
{
if (m_handler_vector.isEmpty()) {
return;
@@ -469,7 +469,7 @@ void PartRectangle::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphic
}
}
adjusteHandlerPos();
adjustHandlerPos();
}
void PartRectangle::handlerMouseReleaseEvent(QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event)

View File

@@ -95,7 +95,7 @@ class PartRectangle : public CustomElementGraphicPart
private:
void switchResizeMode();
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseMoveEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);
void handlerMouseReleaseEvent (QetGraphicsHandlerItem *qghi, QGraphicsSceneMouseEvent *event);

View File

@@ -203,7 +203,7 @@ void Conductor::segmentsToPath()
if (isSelected() && !m_moving_segment)
{
if(handlerPoints().size() == m_handler_vector.size())
adjusteHandlerPos();
adjustHandlerPos();
else
{
removeHandler();
@@ -718,7 +718,7 @@ QVariant Conductor::itemChange(GraphicsItemChange change, const QVariant &value)
calculateTextItemPosition();
}
else if (change == QGraphicsItem::ItemPositionHasChanged && isSelected()) {
adjusteHandlerPos();
adjustHandlerPos();
}
return(QGraphicsObject::itemChange(change, value));
@@ -770,10 +770,10 @@ bool Conductor::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
}
/**
@brief Conductor::adjusteHandlerPos
@brief Conductor::adjustHandlerPos
Adjust the position of the handler item
*/
void Conductor::adjusteHandlerPos()
void Conductor::adjustHandlerPos()
{
if (m_handler_vector.isEmpty())
return;

View File

@@ -164,7 +164,7 @@ class Conductor : public QGraphicsObject
QGraphicsItem *watched, QEvent *event) override;
private:
void adjusteHandlerPos();
void adjustHandlerPos();
void handlerMousePressEvent(
QetGraphicsHandlerItem *qghi,

View File

@@ -129,7 +129,7 @@ bool QetShapeItem::setLine(const QLineF &line)
prepareGeometryChange();
m_P1 = line.p1();
m_P2 = line.p2();
adjusteHandlerPos();
adjustHandlerPos();
return true;
}
@@ -146,7 +146,7 @@ bool QetShapeItem::setRect(const QRectF &rect)
prepareGeometryChange();
m_P1 = rect.topLeft();
m_P2 = rect.bottomRight();
adjusteHandlerPos();
adjustHandlerPos();
return true;
}
@@ -166,7 +166,7 @@ bool QetShapeItem::setPolygon(const QPolygonF &polygon)
}
prepareGeometryChange();
m_polygon = polygon;
adjusteHandlerPos();
adjustHandlerPos();
return true;
}
@@ -189,7 +189,7 @@ void QetShapeItem::setXRadius(qreal X)
{
m_xRadius = X;
update();
adjusteHandlerPos();
adjustHandlerPos();
emit XRadiusChanged();
}
@@ -197,7 +197,7 @@ void QetShapeItem::setYRadius(qreal Y)
{
m_yRadius = Y;
update();
adjusteHandlerPos();
adjustHandlerPos();
emit YRadiusChanged();
}
@@ -398,7 +398,7 @@ QVariant QetShapeItem::itemChange(QGraphicsItem::GraphicsItemChange change,
}
}
else if (change == ItemPositionHasChanged) {
adjusteHandlerPos();
adjustHandlerPos();
}
else if (change == ItemSceneHasChanged)
{
@@ -606,10 +606,10 @@ void QetShapeItem::addHandler()
}
/**
@brief QetShapeItem::adjusteHandlerPos
@brief QetShapeItem::adjustHandlerPos
Adjust the position of the handler item
*/
void QetShapeItem::adjusteHandlerPos()
void QetShapeItem::adjustHandlerPos()
{
if (m_handler_vector.isEmpty()) {
return;
@@ -737,7 +737,7 @@ void QetShapeItem::handlerMouseMoveEvent(QGraphicsSceneMouseEvent *event)
case Line:
prepareGeometryChange();
m_vector_index == 0 ? m_P1 = new_pos : m_P2 = new_pos;
adjusteHandlerPos();
adjustHandlerPos();
break;
case Rectangle:
@@ -761,7 +761,7 @@ void QetShapeItem::handlerMouseMoveEvent(QGraphicsSceneMouseEvent *event)
else {
setYRadius(radius);
}
adjusteHandlerPos();
adjustHandlerPos();
break;
}
case Ellipse:
@@ -777,7 +777,7 @@ void QetShapeItem::handlerMouseMoveEvent(QGraphicsSceneMouseEvent *event)
case Polygon:
prepareGeometryChange();
m_polygon.replace(m_vector_index, new_pos);
adjusteHandlerPos();
adjustHandlerPos();
break;
} //End switch
}

View File

@@ -130,7 +130,7 @@ class QetShapeItem : public QetGraphicsItem
private:
void switchResizeMode();
void addHandler();
void adjusteHandlerPos();
void adjustHandlerPos();
void insertPoint();
void removePoint();