element editor: add dialog for edit element properties (master, slave etc...)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3102 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-06-03 20:21:19 +00:00
parent ff5b82d61a
commit 74732bb54b
9 changed files with 488 additions and 116 deletions

View File

@@ -23,7 +23,8 @@
ReportElement::ReportElement(const ElementsLocation &location, QString link_type,QGraphicsItem *qgi, Diagram *s, int *state) :
CustomElement(location, qgi, s, state)
{
texts().at(0)->setNoEditable();
if (!texts().isEmpty())
texts().first()->setNoEditable();
link_type == "next_report"? link_type_=NextReport : link_type_=PreviousReport;
link_type == "next_report"? inverse_report=PreviousReport : inverse_report=NextReport;
if (s) {
@@ -108,6 +109,7 @@ void ReportElement::setLabel(QString label) {
* ie the folio and position of the linked folio report
*/
void ReportElement::updateLabel() {
if (texts().isEmpty()) return;
ElementTextItem *text = texts().first();
if (!connected_elements.isEmpty()){