mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Added a combo box in the title block properties to choose the template that will render the title block.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1134 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -426,7 +426,15 @@ void DiagramView::editDiagramProperties() {
|
||||
|
||||
BorderPropertiesWidget *border_infos = new BorderPropertiesWidget(border, &popup);
|
||||
border_infos -> setReadOnly(diagram_is_read_only);
|
||||
|
||||
TitleBlockPropertiesWidget *titleblock_infos = new TitleBlockPropertiesWidget(titleblock, false, &popup);
|
||||
if (QETProject *parent_project = scene -> project()) {
|
||||
titleblock_infos -> setTitleBlockTemplatesList(parent_project -> embeddedTitleBlockTemplates());
|
||||
titleblock_infos -> setTitleBlockTemplatesVisible(true);
|
||||
// we have to parse again the TitleBlockProperties object, since the
|
||||
// first parsing did not know of our templates
|
||||
titleblock_infos -> setTitleBlockProperties(titleblock);
|
||||
}
|
||||
titleblock_infos -> setReadOnly(diagram_is_read_only);
|
||||
|
||||
// boutons
|
||||
|
||||
Reference in New Issue
Block a user