element master widget property: improve gui.

add slave element class.
element class: replace diagramcontext informations by elementInformations because informations is already used in xml file for element.
minor improvement.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2869 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-02-22 17:24:20 +00:00
parent 680fded375
commit 105c1c87b6
12 changed files with 365 additions and 37 deletions

View File

@@ -23,6 +23,7 @@
#include "qetgraphicsitem/simpleelement.h"
#include "qetgraphicsitem/reportelement.h"
#include "qetgraphicsitem/masterelement.h"
#include "qetgraphicsitem/slaveelement.h"
ElementFactory* ElementFactory::factory_ = 0;
/**
@@ -48,6 +49,7 @@ Element * ElementFactory::createElement(const ElementsLocation &location, QGraph
QString link_type = element_definition->xml().attribute("link_type");
if (link_type == "next_report" || link_type == "previous_report") return (new ReportElement(location, link_type, qgi, s, state));
if (link_type == "master") return (new MasterElement(location, qgi, s, state));
if (link_type == "slave") return (new SlaveElement (location, qgi, s, state));
}
//default if nothing match for link_type