Skip to content

Commit

Permalink
Merge pull request qelectrotech#313 from plc-user/master
Browse files Browse the repository at this point in the history
fix typos and whitespace
  • Loading branch information
scorpio810 authored Nov 24, 2024
2 parents a9f5e29 + 6dcb6eb commit dd3cee5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sources/ElementsCollection/elementcollectionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sources/ElementsCollection/elementscollectionwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void ElementsCollectionWidget::newElement()
elmt_wizard.exec();

foreach (QETElementEditor *element_editor,
QETApp::instance()->elementEditors())
QETApp::instance()->elementEditors())
connect(element_editor,
&QETElementEditor::saveToLocation,
this,
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion sources/ElementsCollection/elementslocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sources/qetinformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions sources/ui/dynamicelementtextmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd3cee5

Please sign in to comment.