From 6dcb6ebcb7ff4c3a97f4d70c067c92362cc3637e Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Sat, 23 Nov 2024 21:17:39 +0100 Subject: [PATCH] fix typos and whitespace --- sources/ElementsCollection/elementcollectionhandler.cpp | 2 +- sources/ElementsCollection/elementscollectionwidget.cpp | 4 ++-- sources/ElementsCollection/elementslocation.cpp | 2 +- sources/qetinformation.h | 2 +- sources/ui/dynamicelementtextmodel.cpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sources/ElementsCollection/elementcollectionhandler.cpp b/sources/ElementsCollection/elementcollectionhandler.cpp index 46bcca1aa..645d766a1 100644 --- a/sources/ElementsCollection/elementcollectionhandler.cpp +++ b/sources/ElementsCollection/elementcollectionhandler.cpp @@ -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 diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index da7d4df70..b1b99e7ba 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -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, @@ -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; diff --git a/sources/ElementsCollection/elementslocation.cpp b/sources/ElementsCollection/elementslocation.cpp index f0cbc9dff..8ad17f0a3 100644 --- a/sources/ElementsCollection/elementslocation.cpp +++ b/sources/ElementsCollection/elementslocation.cpp @@ -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 diff --git a/sources/qetinformation.h b/sources/qetinformation.h index f3d6335cf..34946d639 100644 --- a/sources/qetinformation.h +++ b/sources/qetinformation.h @@ -22,7 +22,7 @@ #include /** - * 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) diff --git a/sources/ui/dynamicelementtextmodel.cpp b/sources/ui/dynamicelementtextmodel.cpp index effd7a46e..95b224446 100644 --- a/sources/ui/dynamicelementtextmodel.cpp +++ b/sources/ui/dynamicelementtextmodel.cpp @@ -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