#include <terminalstripitemxml.h>
◆ fromXml() [1/2]
TerminalStripItemXml::fromXml Load items stored in xml_elmt into diagram xml_elmt must have a child element with tag name "terminal_strip_tems".
- Parameters
-
- Returns
- a vector of added terminal strip item
◆ fromXml() [2/2]
TerminalStripItemXml::fromXml Restor the state of a terminal strip item from xml_elmt. The xml_elmt tag name must be "terminal_strip_item".
- Parameters
-
- Returns
◆ toXml() [1/2]
QDomElement TerminalStripItemXml::toXml |
( |
const QVector< TerminalStripItem * > & |
items, |
|
|
QDomDocument & |
document |
|
) |
| |
|
static |
TerminalStripItemXml::toXml Save the vector of items as child of an xml element with tag "terminal_strip_tems".
- Parameters
-
items | : items to save in xml |
document | : parent document used to create the QDomElement returned by this function. |
- Returns
- QDomElement where are saved items.
◆ toXml() [2/2]
QDomElement TerminalStripItemXml::toXml |
( |
TerminalStripItem * |
item, |
|
|
QDomDocument & |
document |
|
) |
| |
|
static |
TerminalStripItemXml::toXml Save item to an xml element with tag "terminal_strip_item".
- Parameters
-
item | : item to save in xml |
document | : parent document used to create the QDomElement returned by this function. |
- Returns
- QDomElement where are saved item, note that the returned QDomElement can be null.
The documentation for this class was generated from the following files: