mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-31 16:50:52 +01:00
Forget file from previous commit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5118 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "QPropertyUndoCommand/qpropertyundocommand.h"
|
||||
#include "terminal.h"
|
||||
#include "conductor.h"
|
||||
#include "elementtextitemgroup.h"
|
||||
|
||||
#include <QDomDocument>
|
||||
#include <QDomElement>
|
||||
@@ -222,11 +223,26 @@ void DynamicElementTextItem::fromXml(const QDomElement &dom_elmt)
|
||||
/**
|
||||
* @brief DynamicElementTextItem::ParentElement
|
||||
* @return a pointer to the parent element. Note the pointer can be null.
|
||||
* Note that the text can return a parent element,
|
||||
* even if the text belong to a group of this same element.
|
||||
*/
|
||||
Element *DynamicElementTextItem::parentElement() const {
|
||||
return m_parent_element;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DynamicElementTextItem::parentGroup
|
||||
* @return The group where this text belong, if this item
|
||||
* is note in a group, return nullptr.
|
||||
*/
|
||||
ElementTextItemGroup *DynamicElementTextItem::parentGroup() const
|
||||
{
|
||||
if(group())
|
||||
return dynamic_cast<ElementTextItemGroup *>(group());
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DynamicElementTextItem::elementUseForInfo
|
||||
* @return a pointer to the element we must use for the variable information.
|
||||
@@ -493,6 +509,11 @@ bool DynamicElementTextItem::frame() const
|
||||
return m_frame;
|
||||
}
|
||||
|
||||
QUuid DynamicElementTextItem::uuid() const
|
||||
{
|
||||
return m_uuid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DynamicElementTextItem::mousePressEvent
|
||||
* @param event
|
||||
|
||||
Reference in New Issue
Block a user