mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-08 09:30:00 +02:00
Fix some doxygen issues
This commit is contained in:
@@ -100,7 +100,7 @@ AddTextsGroupCommand::AddTextsGroupCommand(Element *element,
|
||||
@param element : The element to add a new group
|
||||
@param dom_element : the first time the group is created,
|
||||
we call the function fromXml of the group,
|
||||
and give @dom_element has argument.
|
||||
and give dom_element has argument.
|
||||
@param parent : parent undo
|
||||
*/
|
||||
AddTextsGroupCommand::AddTextsGroupCommand(Element *element,
|
||||
@@ -326,7 +326,7 @@ void AddTextToGroupCommand::redo()
|
||||
* ***************************/
|
||||
/**
|
||||
@brief RemoveTextFromGroupCommand::RemoveTextFromGroupCommand
|
||||
@param text : text to add to @group
|
||||
@param text : text to add to group
|
||||
@param group
|
||||
@param parent : parent undo command
|
||||
*/
|
||||
|
||||
@@ -39,8 +39,8 @@ DeleteQGraphicsItemCommand::DeleteQGraphicsItemCommand(Diagram *diagram, const D
|
||||
m_removed_contents(content),
|
||||
m_diagram(diagram)
|
||||
{
|
||||
//If parent element of a dynamic element text item is also in @m_removed_content,
|
||||
//we remove it, because when the element will be removed from the scene every child's will also be removed.
|
||||
//If parent element of a dynamic element text item is also in m_removed_content,
|
||||
//we remove it, because when the element will be removed from the scene every child's will also be removed.
|
||||
const QSet<DynamicElementTextItem *> elmt_set = m_removed_contents.m_element_texts;
|
||||
for(DynamicElementTextItem *deti : elmt_set)
|
||||
{
|
||||
@@ -59,8 +59,8 @@ DeleteQGraphicsItemCommand::DeleteQGraphicsItemCommand(Diagram *diagram, const D
|
||||
m_elmt_text_hash.insert(deti, deti->parentElement());
|
||||
}
|
||||
|
||||
//If parent element of ElementTextItemGroup is also in @m_removed_content,
|
||||
//we remove it, because when the element will be removed from the scene every child's will also be removed.
|
||||
//If parent element of ElementTextItemGroup is also in m_removed_content,
|
||||
//we remove it, because when the element will be removed from the scene every child's will also be removed.
|
||||
const QSet<ElementTextItemGroup *> group_set = m_removed_contents.m_texts_groups;
|
||||
for(ElementTextItemGroup *group : group_set)
|
||||
{
|
||||
|
||||
@@ -125,7 +125,8 @@ bool LinkElementCommand::isLinkable(Element *element_a, Element *element_b, bool
|
||||
|
||||
/**
|
||||
@brief LinkElementCommand::setLink
|
||||
Replace all linked elements of edited element by elements stored in @element_list
|
||||
Replace all linked elements of edited element
|
||||
by elements stored in element_list
|
||||
This method do several check to know if element can be linked or not.
|
||||
@param element_list
|
||||
*/
|
||||
@@ -259,7 +260,7 @@ void LinkElementCommand::setUpNewLink(const QList<Element *> &element_list, bool
|
||||
*/
|
||||
void LinkElementCommand::makeLink(const QList<Element *> &element_list)
|
||||
{
|
||||
//List is empty, that mean m_element must be free, so we unlink all elements
|
||||
//List is empty, that mean m_element must be free, so we unlink all elements
|
||||
if (element_list.isEmpty())
|
||||
{
|
||||
m_element->unlinkAllElements();
|
||||
@@ -270,13 +271,16 @@ void LinkElementCommand::makeLink(const QList<Element *> &element_list)
|
||||
foreach(Element *elmt, element_list)
|
||||
m_element->linkToElement(elmt);
|
||||
|
||||
//At this point may be there are unwanted linked elements to m_element. We must to unlink it.
|
||||
//Elements from @element_list are wanted so we compare @element_list to current linked element of @m_element
|
||||
/* At this point may be there are unwanted linked elements to m_element.
|
||||
* We must to unlink it.
|
||||
* Elements from element_list are wanted so we compare element_list
|
||||
* to current linked element of m_element
|
||||
*/
|
||||
QList<Element *> to_unlink = m_element->linkedElements();
|
||||
foreach(Element *elmt, element_list)
|
||||
to_unlink.removeAll(elmt);
|
||||
|
||||
//All elements stored in to_unlink is unwanted we unlink it from m_element
|
||||
//All elements stored in to_unlink is unwanted we unlink it from m_element
|
||||
if (!to_unlink.isEmpty())
|
||||
foreach(Element *elmt, to_unlink)
|
||||
m_element->unlinkElement(elmt);
|
||||
|
||||
Reference in New Issue
Block a user