Properly re-attaching events to PCell parameters page, so it does not become inactive.

This commit is contained in:
Matthias Koefferlein
2026-08-25 21:15:00 +02:00
parent a6900e091e
commit 1a88be1a77
3 changed files with 14 additions and 2 deletions
+10 -1
View File
@@ -901,7 +901,6 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector <tl::Var
this->layout ()->addWidget (mp_pcell_parameters->page_widget ());
mp_pcell_parameters->set_state (pcp_state);
mp_pcell_parameters->edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited);
} else {
@@ -913,6 +912,16 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector <tl::Var
}
}
void
EditorOptionsInstPCellParam::attach_events ()
{
lay::EditorOptionsPageWidget::attach_events ();
if (mp_pcell_parameters.get ()) {
mp_pcell_parameters->edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited);
}
}
void
EditorOptionsInstPCellParam::parameters_page_edited ()
{
+3
View File
@@ -183,6 +183,9 @@ public:
private slots:
void update_pcell_parameters ();
protected:
virtual void attach_events ();
private:
Ui::EditorOptionsInstPCellParam *mp_ui;
std::unique_ptr<edt::PCellParametersPageBase> mp_pcell_parameters;
+1 -1
View File
@@ -304,6 +304,7 @@ protected:
virtual void technology_changed (const std::string & /*tech*/) { }
virtual void activated () { }
virtual void deactivated () { }
virtual void attach_events ();
private:
EditorOptionsPageCollection *mp_owner;
@@ -316,7 +317,6 @@ private:
void on_active_cellview_changed ();
void on_technology_changed ();
void attach_events ();
};
/**