mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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
This commit is contained in:
@@ -149,7 +149,7 @@ class BorderTitleBlock : public QObject
|
|||||||
/// @param author the new value of the "Folio" field
|
/// @param author the new value of the "Folio" field
|
||||||
void setFolio(const QString &folio) {
|
void setFolio(const QString &folio) {
|
||||||
btb_folio_ = folio;
|
btb_folio_ = folio;
|
||||||
emit (titleBlockFolioChanged());
|
emit (titleBlockFolioChanged(folio));
|
||||||
}
|
}
|
||||||
void setFolioData(int, int, QString = NULL, const DiagramContext & = DiagramContext());
|
void setFolioData(int, int, QString = NULL, const DiagramContext & = DiagramContext());
|
||||||
/// @param author the new value of the "File" field
|
/// @param author the new value of the "File" field
|
||||||
@@ -213,7 +213,7 @@ class BorderTitleBlock : public QObject
|
|||||||
@brief titleBlockFolioChanged
|
@brief titleBlockFolioChanged
|
||||||
Signal emitted after Folio has changed
|
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
|
Signal emitted when the title block requires its data to be updated in order
|
||||||
|
|||||||
@@ -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(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(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(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()));
|
connect(this, SIGNAL (diagramActivated()), this, SLOT(loadElmtFolioSeq()));
|
||||||
adjustSceneRect();
|
adjustSceneRect();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user