mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Added TitleBlockCell::loadContentFromCell()
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1559 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -143,6 +143,22 @@ bool TitleBlockCell::spans() const {
|
|||||||
return(row_span || col_span);
|
return(row_span || col_span);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
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
|
@param cell_element XML element from which cell content will be read
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -46,9 +46,11 @@ class TitleBlockCell {
|
|||||||
QVariant attribute(const QString &);
|
QVariant attribute(const QString &);
|
||||||
static QString attributeName(const QString &);
|
static QString attributeName(const QString &);
|
||||||
bool spans() const;
|
bool spans() const;
|
||||||
|
void loadContentFromCell(const TitleBlockCell &);
|
||||||
void loadContentFromXml(const QDomElement &);
|
void loadContentFromXml(const QDomElement &);
|
||||||
void saveContentToXml(QDomElement &);
|
void saveContentToXml(QDomElement &);
|
||||||
|
|
||||||
|
|
||||||
// attributes
|
// attributes
|
||||||
public:
|
public:
|
||||||
TemplateCellType cell_type; ///< Cell type: empty, text, logo?
|
TemplateCellType cell_type; ///< Cell type: empty, text, logo?
|
||||||
|
|||||||
Reference in New Issue
Block a user