remove the class comment item

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5277 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-03-25 14:58:33 +00:00
parent a7917bb5bb
commit 6a958c668a
6 changed files with 5 additions and 268 deletions

View File

@@ -16,7 +16,6 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "simpleelement.h"
#include "commentitem.h"
#include "diagram.h"
/**
@@ -27,9 +26,7 @@
* @param state
*/
SimpleElement::SimpleElement(const ElementsLocation &location, QGraphicsItem *qgi, int *state) :
CustomElement(location, qgi, state),
m_comment_item (nullptr),
m_location_item (nullptr)
CustomElement(location, qgi, state)
{
m_link_type = Simple;
}
@@ -37,9 +34,7 @@ SimpleElement::SimpleElement(const ElementsLocation &location, QGraphicsItem *qg
/**
* @brief SimpleElement::~SimpleElement
*/
SimpleElement::~SimpleElement() {
if (m_comment_item) delete m_comment_item;
}
SimpleElement::~SimpleElement() {}
/**
* @brief SimpleElement::initLink