diff --git a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp index c90b76952..208450a06 100644 --- a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp +++ b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp @@ -63,7 +63,7 @@ void QetGraphicsTableItem::adjustTableToFolio( --size_.rwidth(); } table->setSize(size_); - //Calcul the maximum row to display to fit the nomenclature into diagram + //Calculate the maximum row to display to fit the nomenclature into diagram auto available_height = drawable_rect.height() - table->pos().y(); auto min_row_height = table->minimumRowHeight(); table->setDisplayNRow(int(floor(available_height/min_row_height))); //Convert a double to int, but max_row_to_display is already rounded an integer so we assume everything is ok diff --git a/sources/qetgraphicsitem/conductor.cpp b/sources/qetgraphicsitem/conductor.cpp index 8aeddbdc6..ab22bcbf5 100644 --- a/sources/qetgraphicsitem/conductor.cpp +++ b/sources/qetgraphicsitem/conductor.cpp @@ -824,7 +824,7 @@ void Conductor::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsSce //Position of the last point QPointF p = m_moved_segment -> middle(); - //Calcul the movement + //Calculate the movement m_moved_segment -> moveX(pos_.x() - p.x()); m_moved_segment -> moveY(pos_.y() - p.y()); diff --git a/sources/qetgraphicsitem/crossrefitem.cpp b/sources/qetgraphicsitem/crossrefitem.cpp index f0c7ba897..98d941c6a 100644 --- a/sources/qetgraphicsitem/crossrefitem.cpp +++ b/sources/qetgraphicsitem/crossrefitem.cpp @@ -251,7 +251,7 @@ void CrossRefItem::updateLabel() */ void CrossRefItem::autoPos() { - //We calcul the position according to the snapTo of the xrefproperties + //We calculate the position according to the snapTo of the xrefproperties if (m_properties.snapTo() == XRefProperties::Bottom) QGIUtility::centerToBottomDiagram(this, m_element, @@ -564,7 +564,7 @@ void CrossRefItem::setUpCrossBoundingRect(QPainter &painter) */ void CrossRefItem::drawAsCross(QPainter &painter) { - //calcul the size of the cross + //calculate the size of the cross setUpCrossBoundingRect(painter); m_hovered_contacts_map.clear(); diff --git a/sources/qetgraphicsitem/qetgraphicsitem.cpp b/sources/qetgraphicsitem/qetgraphicsitem.cpp index 47a736576..7ec07d33d 100644 --- a/sources/qetgraphicsitem/qetgraphicsitem.cpp +++ b/sources/qetgraphicsitem/qetgraphicsitem.cpp @@ -129,7 +129,7 @@ void QetGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) QPointF expected_pos = event->scenePos() + m_mouse_to_origin_movement; setPos(expected_pos); // setPos() will snap the expected position to the grid - //we calcul the real movement apply by setPos() + //we calculate the real movement applied by setPos() QPointF effective_movement = pos() - old_pos; if (diagram()) { //we signal the real movement apply to diagram, diff --git a/sources/qetgraphicsitem/terminal.cpp b/sources/qetgraphicsitem/terminal.cpp index 169e7a1b2..b0028a0dc 100644 --- a/sources/qetgraphicsitem/terminal.cpp +++ b/sources/qetgraphicsitem/terminal.cpp @@ -43,7 +43,7 @@ const qreal Terminal::Z = 1000; */ void Terminal::init() { - //Calcul the docking point of the element + //Calculate the docking point of the element //m_pos of d is the docking point of conductor dock_elmt_ = d->m_pos; switch(d->m_orientation) { @@ -53,7 +53,7 @@ void Terminal::init() case Qet::South: dock_elmt_ += QPointF(0, -Terminal::terminalSize); break; } - //Calcul the bounding rect + //Calculate the bounding rect qreal dcx = d->m_pos.x(); qreal dcy = d->m_pos.y(); qreal dex = dock_elmt_.x(); diff --git a/sources/undocommand/movegraphicsitemcommand.cpp b/sources/undocommand/movegraphicsitemcommand.cpp index 20037efcc..1140c968e 100644 --- a/sources/undocommand/movegraphicsitemcommand.cpp +++ b/sources/undocommand/movegraphicsitemcommand.cpp @@ -146,7 +146,7 @@ void MoveGraphicsItemCommand::move(const QPointF &movement) conductor->pos() + movement); } - //Recalcul the path of other conductors + //Recalculate the path of other conductors for (const auto &conductor : qAsConst(m_content.m_conductors_to_update)) { setupAnimation(conductor, "animPath", 1, 1); }