mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
When editing a diagram, it is now possible to edit and/or duplicate a title block template from the title block properties dialog.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1479 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -455,6 +455,7 @@ void DiagramView::editDiagramProperties() {
|
||||
|
||||
// construit le dialogue
|
||||
QDialog popup(diagramEditor());
|
||||
popup.setWindowModality(Qt::WindowModal);
|
||||
#ifdef Q_WS_MAC
|
||||
popup.setWindowFlags(Qt::Sheet);
|
||||
#endif
|
||||
@@ -473,6 +474,8 @@ void DiagramView::editDiagramProperties() {
|
||||
// we have to parse again the TitleBlockProperties object, since the
|
||||
// first parsing did not know of our templates
|
||||
titleblock_infos -> setTitleBlockProperties(titleblock);
|
||||
// relay the signal that requires a title block template edition
|
||||
connect(titleblock_infos, SIGNAL(editTitleBlockTemplate(QString, bool)), this, SIGNAL(editTitleBlockTemplate(QString, bool)));
|
||||
}
|
||||
titleblock_infos -> setReadOnly(diagram_is_read_only);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user