diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index 31ab33a75..d0bc5ff88 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -517,11 +517,11 @@ QRectF ElementScene::boundingRectFromXml(const QDomDocument &xml_document) ElementContent loaded_content = loadContent(xml_document); if (loaded_content.isEmpty()) return(QRectF()); - // calcule the boundingRect + // calculate the boundingRect // calcule le boundingRect QRectF bounding_rect = elementContentBoundingRect(loaded_content); - // destroy charged parties + // destroy loaded parts // detruit les parties chargees qDeleteAll(loaded_content); diff --git a/sources/editor/elementview.cpp b/sources/editor/elementview.cpp index 7c34ff6b6..05fc6c41d 100644 --- a/sources/editor/elementview.cpp +++ b/sources/editor/elementview.cpp @@ -321,10 +321,12 @@ ElementContent ElementView::paste(const QDomDocument &xml_document, const QPoint } /** + Paste the XML document "xml_document" at position pos Colle le document XML xml_document a la position pos @param xml_document Document XML a coller */ ElementContent ElementView::pasteWithOffset(const QDomDocument &xml_document) { + // object to retrieve content added to the scheme by pasting // objet pour recuperer le contenu ajoute au schema par le coller ElementContent content_pasted; @@ -358,6 +360,7 @@ ElementContent ElementView::pasteWithOffset(const QDomDocument &xml_document) { start_top_left_corner_ = final_pasted_content_bounding_rect.topLeft(); m_scene -> fromXml(xml_document, start_top_left_corner_, false, &content_pasted); + // if something has actually been added to the scheme, a cancel object is created // si quelque chose a effectivement ete ajoute au schema, on cree un objet d'annulation if (content_pasted.count()) { m_scene -> clearSelection(); diff --git a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp index 784d44cbd..c90b76952 100644 --- a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp +++ b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp @@ -274,7 +274,7 @@ void QetGraphicsTableItem::paint( offset += m_header_item->sectionSize(i); } - //Calcule the number of rows to display. + //calculate the number of rows to display. auto row_count = m_model->rowCount(); if (m_previous_table) //Remove the number of row already displayed by previous tables @@ -516,7 +516,7 @@ int QetGraphicsTableItem::displayedRowCount() const return 0; } - //Calcule the number of rows to display. + //calculate the number of rows to display. auto row_count = m_model->rowCount(); if (m_previous_table) //Remove the number of row already displayed by previous tables @@ -858,7 +858,7 @@ void QetGraphicsTableItem::modelReseted() /** @brief QetGraphicsTableItem::setUpColumnAndRowMinimumSize - Calcule the minimum row height and the minimum column width for each columns + Calculate the minimum row height and the minimum column width for each columns this function doesn't change the geometry of the table. */ void QetGraphicsTableItem::setUpColumnAndRowMinimumSize()