diff --git a/sources/bordertitleblock.h b/sources/bordertitleblock.h index d6da67f79..d9767d689 100644 --- a/sources/bordertitleblock.h +++ b/sources/bordertitleblock.h @@ -149,7 +149,7 @@ class BorderTitleBlock : public QObject /// @param author the new value of the "Folio" field void setFolio(const QString &folio) { btb_folio_ = folio; - emit (titleBlockFolioChanged()); + emit (titleBlockFolioChanged(folio)); } void setFolioData(int, int, QString = NULL, const DiagramContext & = DiagramContext()); /// @param author the new value of the "File" field @@ -213,7 +213,7 @@ class BorderTitleBlock : public QObject @brief titleBlockFolioChanged Signal emitted after Folio has changed */ - void titleBlockFolioChanged(); + void titleBlockFolioChanged(const QString &); /** Signal emitted when the title block requires its data to be updated in order diff --git a/sources/diagram.cpp b/sources/diagram.cpp index 563ce4f06..b5a66740b 100644 --- a/sources/diagram.cpp +++ b/sources/diagram.cpp @@ -78,8 +78,9 @@ Diagram::Diagram(QETProject *project) : connect(&border_and_titleblock, SIGNAL(needTitleBlockTemplate(const QString &)), this, SLOT(setTitleBlockTemplate(const QString &))); connect(&border_and_titleblock, SIGNAL(diagramTitleChanged(const QString &)), this, SLOT(titleChanged(const QString &))); + connect(&border_and_titleblock, SIGNAL(titleBlockFolioChanged(const QString &)), this, SLOT(titleChanged(const QString &))); connect(&border_and_titleblock, SIGNAL(borderChanged(QRectF,QRectF)), this, SLOT(adjustSceneRect())); - connect(&border_and_titleblock, SIGNAL(titleBlockFolioChanged()), this, SLOT(updateLabels())); + connect(&border_and_titleblock, SIGNAL(titleBlockFolioChanged(const QString &)), this, SLOT(updateLabels())); connect(this, SIGNAL (diagramActivated()), this, SLOT(loadElmtFolioSeq())); adjustSceneRect(); }