fix typos and whitespace

This commit is contained in:
plc-user
2024-11-23 21:17:39 +01:00
parent a9f5e2945b
commit 6dcb6ebcb7
5 changed files with 7 additions and 7 deletions

View File

@@ -399,7 +399,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
@brief ElementCollectionHandler::importFromProject
Import the element represented by location to the embedded collection
of project at the same path.
location must represente an element owned by a project embedded collection
location must represent an element owned by a project embedded collection
@param project : project where copy the element
@param location : location to copy
@return true if import with success

View File

@@ -713,7 +713,7 @@ void ElementsCollectionWidget::locationWasSaved(
const ElementsLocation& location)
{
//Because this method update an item in the model, location must
//represente an existing element (in file system of project)
//represent an existing element (in file system of project)
if (!location.exist())
return;

View File

@@ -591,7 +591,7 @@ bool ElementsLocation::isWritable() const
/**
@brief ElementsLocation::projectCollection
@return
If this location represente a item in an embedded project collection,
If this location represents an item in an embedded project collection,
return this collection else return nullptr.
*/
XmlElementCollection *ElementsLocation::projectCollection() const

View File

@@ -22,7 +22,7 @@
#include <QHash>
/**
* Inside this namespace you will fin all information used in QElectrotech for
* Inside this namespace you will find all information used in QElectrotech for
* element, conductor and diagram.
* Each information have 3 values :
* #1 the info key = the key of an information as a QString used in the code (example : label)

View File

@@ -970,7 +970,7 @@ QModelIndex DynamicElementTextModel::indexFromGroup(
/**
@brief DynamicElementTextModel::indexIsText
@param index
@return True if index represente a text, both for the column 0 and 1.
@return True if index represents a text, both for the column 0 and 1.
Return false if index is a child of an index associated to a text.
*/
bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
@@ -1000,7 +1000,7 @@ bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
/**
@brief DynamicElementTextModel::indexIsGroup
@param index
@return True if index represente a group, both for the column 0 and 1.
@return True if index represents a group, both for the column 0 and 1.
Return false if index is a child of an index associated to a group.
*/
bool DynamicElementTextModel::indexIsGroup(const QModelIndex &index) const