mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
2009-04-16 Stefan Jahn <stefan@lkcc.org>
* dialogs/labeldialog.cpp (LabelDialog): Allow input of global nodes such as "subst!".
This commit is contained in:
parent
eaea2e0ea2
commit
dfd2749aad
@ -1,5 +1,8 @@
|
||||
2009-04-16 Stefan Jahn <stefan@lkcc.org>
|
||||
|
||||
* dialogs/labeldialog.cpp (LabelDialog): Allow input of global
|
||||
nodes such as "subst!".
|
||||
|
||||
* paintings/id_dialog.cpp (ID_Dialog): Added new 'Type' property
|
||||
for subcircuit parameters.
|
||||
|
||||
|
@ -35,7 +35,7 @@ LabelDialog::LabelDialog(WireLabel *pl, QWidget *parent)
|
||||
|
||||
// valid expression for LineEdit: alpha-numeric, but must start with
|
||||
// letter and never two "_" together
|
||||
Expr1.setPattern("[a-zA-Z]([0-9a-zA-Z]|_(?!_))+");
|
||||
Expr1.setPattern("[a-zA-Z]([0-9a-zA-Z]|_(?!_))+\\!{0,1}");
|
||||
Validator1 = new QRegExpValidator(Expr1, this);
|
||||
|
||||
QLabel *Label1 = new QLabel(tr("Enter the label:"),this);
|
||||
@ -46,7 +46,7 @@ LabelDialog::LabelDialog(WireLabel *pl, QWidget *parent)
|
||||
NodeName->setValidator(Validator1);
|
||||
gbox->addMultiCellWidget(NodeName,1,1,0,3);
|
||||
|
||||
Expr2.setPattern("[^\"=]+"); // valid expression for LineEdit
|
||||
Expr2.setPattern("[^\"=]+"); // valid expression for LineEdit
|
||||
Validator2 = new QRegExpValidator(Expr2, this);
|
||||
|
||||
Label2 = new QLabel(tr("Initial node voltage:"),this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user