[qet] [4643] Add signal to refresh folio label in panel tree view when user change

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4643
Author:   scorpio810
Date:     2016-08-21 21:37:32 +0200 (Sun, 21 Aug 2016)
Log Message:
-----------
Add signal to refresh folio label in panel tree view when user change
folio label in titleBlock property

Modified Paths:
--------------
    trunk/sources/bordertitleblock.h
    trunk/sources/diagram.cpp

Modified: trunk/sources/bordertitleblock.h
===================================================================
--- trunk/sources/bordertitleblock.h	2016-08-21 03:21:11 UTC (rev 4642)
+++ trunk/sources/bordertitleblock.h	2016-08-21 19:37:32 UTC (rev 4643)
@@ -149,7 +149,7 @@
 	/// @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 @@
 	 @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

Modified: trunk/sources/diagram.cpp
===================================================================
--- trunk/sources/diagram.cpp	2016-08-21 03:21:11 UTC (rev 4642)
+++ trunk/sources/diagram.cpp	2016-08-21 19:37:32 UTC (rev 4643)
@@ -78,8 +78,9 @@
 
 	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();
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/