mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +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:
@@ -107,7 +107,7 @@ Diagram::Diagram(QETProject *project) :
|
||||
&BorderTitleBlock::needTitleBlockTemplate,
|
||||
this, &Diagram::setTitleBlockTemplate);
|
||||
connect(&border_and_titleblock,
|
||||
&BorderTitleBlock::diagramTitleChanged,
|
||||
&BorderTitleBlock::informationChanged,
|
||||
this, &Diagram::titleChanged);
|
||||
connect(&border_and_titleblock,
|
||||
&BorderTitleBlock::titleBlockFolioChanged,
|
||||
@@ -1644,8 +1644,8 @@ void Diagram::removeItem(QGraphicsItem *item)
|
||||
emit(diagramTitleChanged(this, title));
|
||||
@param title
|
||||
*/
|
||||
void Diagram::titleChanged(const QString &title) {
|
||||
emit(diagramTitleChanged(this, title));
|
||||
void Diagram::titleChanged() {
|
||||
emit(diagramTitleChanged(this));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user