From cfa0dd5b02e69c3776f1b3350b942ef621ca3653 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sun, 21 Aug 2016 19:37:32 +0000 Subject: [PATCH] Add signal to refresh folio label in panel tree view when user change folio label in titleBlock property git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4643 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/bordertitleblock.h | 4 ++-- sources/diagram.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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(); }