[qet] [1559] Added TitleBlockCell::loadContentFromCell() |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1559
Author: xavier
Date: 2012-03-11 17:06:37 +0100 (Sun, 11 Mar 2012)
Log Message:
-----------
Added TitleBlockCell::loadContentFromCell()
Modified Paths:
--------------
branches/0.3/sources/titleblockcell.cpp
branches/0.3/sources/titleblockcell.h
Modified: branches/0.3/sources/titleblockcell.cpp
===================================================================
--- branches/0.3/sources/titleblockcell.cpp 2012-03-11 16:06:30 UTC (rev 1558)
+++ branches/0.3/sources/titleblockcell.cpp 2012-03-11 16:06:37 UTC (rev 1559)
@@ -144,6 +144,22 @@
}
/**
+ Copy the content of another cell.
+ @param other_cell Another cell
+*/
+void TitleBlockCell::loadContentFromCell(const TitleBlockCell &other_cell) {
+ value_name = other_cell.value_name;
+ cell_type = other_cell.cell_type;
+ logo_reference = other_cell.logo_reference;
+ value = other_cell.value;
+ label = other_cell.label;
+ display_label = other_cell.display_label;
+ font_size = other_cell.font_size;
+ alignment = other_cell.alignment;
+ hadjust = other_cell.hadjust;
+}
+
+/**
@param cell_element XML element from which cell content will be read
*/
void TitleBlockCell::loadContentFromXml(const QDomElement &cell_element) {
Modified: branches/0.3/sources/titleblockcell.h
===================================================================
--- branches/0.3/sources/titleblockcell.h 2012-03-11 16:06:30 UTC (rev 1558)
+++ branches/0.3/sources/titleblockcell.h 2012-03-11 16:06:37 UTC (rev 1559)
@@ -46,9 +46,11 @@
QVariant attribute(const QString &);
static QString attributeName(const QString &);
bool spans() const;
+ void loadContentFromCell(const TitleBlockCell &);
void loadContentFromXml(const QDomElement &);
void saveContentToXml(QDomElement &);
+
// attributes
public:
TemplateCellType cell_type; ///< Cell type: empty, text, logo?