mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
remove unnecessary setters
This commit is contained in:
@@ -311,23 +311,26 @@ TitleBlockProperties BorderTitleBlock::exportTitleBlock()
|
||||
@brief BorderTitleBlock::importTitleBlock
|
||||
@param ip the new properties of titleblock
|
||||
*/
|
||||
void BorderTitleBlock::importTitleBlock(const TitleBlockProperties &ip) {
|
||||
setAuthor(ip.author);
|
||||
setDate(ip.date);
|
||||
void BorderTitleBlock::importTitleBlock(const TitleBlockProperties &ip)
|
||||
{
|
||||
btb_author_ = ip.author;
|
||||
btb_date_ = ip.date;
|
||||
btb_filename_ = ip.filename;
|
||||
btb_plant_ = ip.plant;
|
||||
btb_locmach_ = ip.locmach;
|
||||
btb_indexrev_ = ip.indexrev;
|
||||
btb_version_ = QetVersion::displayedVersion();
|
||||
btb_auto_page_num_ = ip.auto_page_num;
|
||||
additional_fields_ = ip.context;
|
||||
|
||||
setTitle(ip.title);
|
||||
setFileName(ip.filename);
|
||||
setPlant(ip.plant);
|
||||
setLocMach(ip.locmach);
|
||||
setIndicerev(ip.indexrev);
|
||||
setVersion(QetVersion::displayedVersion());
|
||||
setFolio(ip.folio);
|
||||
setAutoPageNum(ip.auto_page_num);
|
||||
|
||||
if (m_edge != ip.display_at)
|
||||
{
|
||||
m_edge = ip.display_at;
|
||||
emit(displayChanged());
|
||||
}
|
||||
additional_fields_ = ip.context;
|
||||
|
||||
emit(needFolioData()); // Note: we expect additional data to be provided
|
||||
// through setFolioData(),
|
||||
@@ -883,22 +886,6 @@ DiagramPosition BorderTitleBlock::convertPosition(const QPointF &pos)
|
||||
return(DiagramPosition(letter, row_number));
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setAuthor
|
||||
@param author the new value of the "Author" field
|
||||
*/
|
||||
void BorderTitleBlock::setAuthor(const QString &author) {
|
||||
btb_author_ = author;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setDate
|
||||
@param date the new value of the "Date" field
|
||||
*/
|
||||
void BorderTitleBlock::setDate(const QDate &date) {
|
||||
btb_date_ = date;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setTitle
|
||||
@param title the new value of the "Title" field
|
||||
@@ -1036,54 +1023,6 @@ void BorderTitleBlock::setFolioData(
|
||||
updateDiagramContextForTitleBlock(project_properties);
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setPlant
|
||||
@param plant the new value of the "plant" field
|
||||
*/
|
||||
void BorderTitleBlock::setPlant(const QString &plant) {
|
||||
btb_plant_ = plant;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setLocMach
|
||||
@param locmach the new value of the "locmach" field
|
||||
*/
|
||||
void BorderTitleBlock::setLocMach(const QString &locmach) {
|
||||
btb_locmach_ = locmach;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setIndicerev
|
||||
@param indexrev the new value of the "indexrev" field
|
||||
*/
|
||||
void BorderTitleBlock::setIndicerev(const QString &indexrev) {
|
||||
btb_indexrev_ = indexrev;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setFileName
|
||||
@param filename the new value of the "filename" field
|
||||
*/
|
||||
void BorderTitleBlock::setFileName(const QString &filename) {
|
||||
btb_filename_ = filename;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setVersion
|
||||
@param version the new value of the "version" field
|
||||
*/
|
||||
void BorderTitleBlock::setVersion(const QString &version) {
|
||||
btb_version_ = version;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setAutoPageNum
|
||||
@param auto_page_num the new value of the "auto_page_num" field
|
||||
*/
|
||||
void BorderTitleBlock::setAutoPageNum(const QString &auto_page_num) {
|
||||
btb_auto_page_num_ = auto_page_num;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief BorderTitleBlock::setPreviousFolioNum
|
||||
@param previous the new value of the "previous-folio-num" field
|
||||
|
||||
Reference in New Issue
Block a user