Skip to content

Commit 35757fe

Browse files
committed
Correct initial script
1 parent abb839d commit 35757fe

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

omodsim/controls/scriptcontrol.ui

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<item>
2727
<widget class="QSplitter" name="verticalSplitter">
2828
<property name="orientation">
29-
<enum>Qt::Horizontal</enum>
29+
<enum>Qt::Orientation::Horizontal</enum>
3030
</property>
3131
<widget class="QSplitter" name="horizontalSplitter">
3232
<property name="sizePolicy">
@@ -36,17 +36,18 @@
3636
</sizepolicy>
3737
</property>
3838
<property name="orientation">
39-
<enum>Qt::Vertical</enum>
39+
<enum>Qt::Orientation::Vertical</enum>
4040
</property>
4141
<widget class="JSCodeEditor" name="codeEditor">
4242
<property name="sizePolicy">
4343
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
44-
<horstretch>0</horstretch>
44+
<horstretch>2</horstretch>
4545
<verstretch>4</verstretch>
4646
</sizepolicy>
4747
</property>
4848
<property name="plainText">
4949
<string>Script.onInit(()=&gt;{
50+
Server.addressBase = AddressBase.Base1;
5051
Server.onChange(Register.Holding, 1, (value)=&gt;
5152
{
5253
/* write your code on register value change */

0 commit comments

Comments
 (0)