mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
Title block template editor: the logos combo box is now updated after every change made from the logo manager.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1419 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -98,10 +98,9 @@ bool QETTitleBlockTemplateEditor::edit(QETProject *project, const QString &templ
|
||||
void QETTitleBlockTemplateEditor::editLogos() {
|
||||
if (tb_template_) {
|
||||
if (!logo_manager_) {
|
||||
logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_);
|
||||
initLogoManager();
|
||||
}
|
||||
logo_manager_ -> show();
|
||||
template_cell_editor_widget_ -> updateLogosComboBox(tb_template_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,6 +242,16 @@ void QETTitleBlockTemplateEditor::initWidgets() {
|
||||
);
|
||||
}
|
||||
|
||||
void QETTitleBlockTemplateEditor::initLogoManager() {
|
||||
logo_manager_ = new TitleBlockTemplateLogoManager(tb_template_);
|
||||
connect(
|
||||
logo_manager_,
|
||||
SIGNAL(logosChanged(const TitleBlockTemplate *)),
|
||||
template_cell_editor_widget_,
|
||||
SLOT(updateLogosComboBox(const TitleBlockTemplate *))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
Update various things when user changes the selected cells.
|
||||
@param selected_cells List of selected cells.
|
||||
|
||||
Reference in New Issue
Block a user