mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02: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:
parent
14d5811979
commit
dc2ea1ae80
@ -143,6 +143,22 @@ bool TitleBlockCell::spans() const {
|
||||
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
|
||||
*/
|
||||
|
@ -46,9 +46,11 @@ class TitleBlockCell {
|
||||
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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user