mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 10:30:53 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user