mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
fix typos and whitespace
This commit is contained in:
@@ -399,7 +399,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
|
|||||||
@brief ElementCollectionHandler::importFromProject
|
@brief ElementCollectionHandler::importFromProject
|
||||||
Import the element represented by location to the embedded collection
|
Import the element represented by location to the embedded collection
|
||||||
of project at the same path.
|
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 project : project where copy the element
|
||||||
@param location : location to copy
|
@param location : location to copy
|
||||||
@return true if import with success
|
@return true if import with success
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ void ElementsCollectionWidget::newElement()
|
|||||||
elmt_wizard.exec();
|
elmt_wizard.exec();
|
||||||
|
|
||||||
foreach (QETElementEditor *element_editor,
|
foreach (QETElementEditor *element_editor,
|
||||||
QETApp::instance()->elementEditors())
|
QETApp::instance()->elementEditors())
|
||||||
connect(element_editor,
|
connect(element_editor,
|
||||||
&QETElementEditor::saveToLocation,
|
&QETElementEditor::saveToLocation,
|
||||||
this,
|
this,
|
||||||
@@ -713,7 +713,7 @@ void ElementsCollectionWidget::locationWasSaved(
|
|||||||
const ElementsLocation& location)
|
const ElementsLocation& location)
|
||||||
{
|
{
|
||||||
//Because this method update an item in the model, location must
|
//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())
|
if (!location.exist())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -591,7 +591,7 @@ bool ElementsLocation::isWritable() const
|
|||||||
/**
|
/**
|
||||||
@brief ElementsLocation::projectCollection
|
@brief ElementsLocation::projectCollection
|
||||||
@return
|
@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.
|
return this collection else return nullptr.
|
||||||
*/
|
*/
|
||||||
XmlElementCollection *ElementsLocation::projectCollection() const
|
XmlElementCollection *ElementsLocation::projectCollection() const
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <QHash>
|
#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.
|
* element, conductor and diagram.
|
||||||
* Each information have 3 values :
|
* Each information have 3 values :
|
||||||
* #1 the info key = the key of an information as a QString used in the code (example : label)
|
* #1 the info key = the key of an information as a QString used in the code (example : label)
|
||||||
|
|||||||
@@ -970,7 +970,7 @@ QModelIndex DynamicElementTextModel::indexFromGroup(
|
|||||||
/**
|
/**
|
||||||
@brief DynamicElementTextModel::indexIsText
|
@brief DynamicElementTextModel::indexIsText
|
||||||
@param index
|
@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.
|
Return false if index is a child of an index associated to a text.
|
||||||
*/
|
*/
|
||||||
bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
|
bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
|
||||||
@@ -1000,7 +1000,7 @@ bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
|
|||||||
/**
|
/**
|
||||||
@brief DynamicElementTextModel::indexIsGroup
|
@brief DynamicElementTextModel::indexIsGroup
|
||||||
@param index
|
@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.
|
Return false if index is a child of an index associated to a group.
|
||||||
*/
|
*/
|
||||||
bool DynamicElementTextModel::indexIsGroup(const QModelIndex &index) const
|
bool DynamicElementTextModel::indexIsGroup(const QModelIndex &index) const
|
||||||
|
|||||||
Reference in New Issue
Block a user