Improve last commit

Remove setter function : void BorderTitleBlock::setTitle(const QString
&title)
Remove singal diagramTitleChanged from BorderTitleBlock and use instead
the signal informationChanged.
This commit is contained in:
joshua
2023-10-17 22:46:04 +02:00
parent 75746be0d8
commit 27dcd5ef00
6 changed files with 8 additions and 29 deletions

View File

@@ -322,8 +322,8 @@ void BorderTitleBlock::importTitleBlock(const TitleBlockProperties &ip)
btb_version_ = QetVersion::displayedVersion();
btb_auto_page_num_ = ip.auto_page_num;
additional_fields_ = ip.context;
btb_title_ = ip.title;
setTitle(ip.title);
setFolio(ip.folio);
if (m_edge != ip.display_at)
@@ -886,19 +886,6 @@ DiagramPosition BorderTitleBlock::convertPosition(const QPointF &pos)
return(DiagramPosition(letter, row_number));
}
/**
@brief BorderTitleBlock::setTitle
@param title the new value of the "Title" field
*/
void BorderTitleBlock::setTitle(const QString &title)
{
if (btb_title_ != title)
{
btb_title_ = title;
emit(diagramTitleChanged(title));
}
}
/**
@brief BorderTitleBlock::setFolio
@param folio the new value of the "Folio" field