git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5579 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-11-10 12:19:30 +00:00
parent a76da57544
commit a620b4067d
7 changed files with 34 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2006-2017 The QElectroTech Team
Copyright 2006-2018 The QElectroTech Team
This file is part of QElectroTech.
QElectroTech is free software: you can redistribute it and/or modify
@@ -24,11 +24,10 @@
#include "dynamicelementtextitem.h"
ReportElement::ReportElement(const ElementsLocation &location, const QString& link_type,QGraphicsItem *qgi, int *state) :
Element(location, qgi, state)
{
link_type == "next_report"? m_link_type=NextReport : m_link_type=PreviousReport;
link_type == "next_report"? m_inverse_report=PreviousReport : m_inverse_report=NextReport;
}
Element(location, qgi, state,
link_type == "next_report"? Element::NextReport : Element::PreviousReport),
m_inverse_report(link_type == "next_report"? Element::PreviousReport : Element::NextReport)
{}
/**
* @brief ReportElement::~ReportElement