From aa3354b9ffd1c45e45bd924319bf744ca44dd55e Mon Sep 17 00:00:00 2001 From: Iwbnwif Yiw Date: Tue, 10 Dec 2024 20:20:27 +0000 Subject: [PATCH] Allow free text editing for .IC components. --- qucs/components/componentdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qucs/components/componentdialog.cpp b/qucs/components/componentdialog.cpp index 52902297..2bf92fef 100644 --- a/qucs/components/componentdialog.cpp +++ b/qucs/components/componentdialog.cpp @@ -348,7 +348,7 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem componentNameWidget->setCheck(component->showName); // Try to work out what kind of component this is. - isEquation = QStringList({"Eqn", "NutmegEq", "SpicePar", "SpGlobPar"}).contains(component->Model); + isEquation = QStringList({"Eqn", "NutmegEq", "SpiceIC", "SpicePar", "SpGlobPar"}).contains(component->Model); hasSweep = QStringList({".AC", ".DISTO", ".NOISE", ".SW", ".SP", ".TR"}).contains(component->Model); hasFile = component->Props.count() > 0 && component->Props.at(0)->Name == "File"; @@ -358,8 +358,8 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem // for a given simulation type. Then only create the valid widgets fo // sweepParams[".AC"] = QStringList({"Type", "Start", "Stop", "Points"}); - paramsHiddenBySim["Export"] = QStringList{"NutmegEq", "SpicePar", "SpGlobPar"}; - paramsHiddenBySim["Sim"] = QStringList{".AC", ".DISTO", ".SP", ".NOISE", ".TR", "Eqn", "SpicePar", "SpGlobPar"}; + paramsHiddenBySim["Export"] = QStringList{"NutmegEq", "SpiceIC", "SpicePar", "SpGlobPar"}; + paramsHiddenBySim["Sim"] = QStringList{".AC", ".DISTO", ".SP", ".NOISE", ".TR", "Eqn", "SpiceIC", "SpicePar", "SpGlobPar"}; paramsHiddenBySim["Param"] = QStringList{".AC", ".DISTO", ".SP", ".NOISE", ".TR"}; // Setup the dialog according to the component kind.