Update Form Designer - QTableWidget.ring - Check the Index Start (from 0 or 1).
@@ -358,7 +358,12 @@ class FormDesigner_QTableWidget from QLineEdit
}
if HorizontalHeadersValue() != NULL {
aTempList = Split(HorizontalHeadersValue(),",")
+ # Index start from 1
+ if oDesigner.oModel.FormObject().IndexTypeValue() = 0 {
nPos = 1
+ else
+ nPos = 0
+ }
for item in aTempList {
cOutput += 'setHorizontalHeaderItem(#{f1}, new QTableWidgetItem("#{f2}"))' + nl
cOutput = substr(cOutput,"#{f1}",""+nPos)
@@ -368,7 +373,12 @@ class FormDesigner_QTableWidget from QLineEdit
}
if ColumnsWidthValue() != NULL {
aTempList = Split(ColumnsWidthValue(),",")
+ # Index start from 1
+ if oDesigner.oModel.FormObject().IndexTypeValue() = 0 {
nPos = 1
+ else
+ nPos = 0
+ }
for item in aTempList {
cOutput += 'setColumnwidth(#{f1},#{f2})' + nl
cOutput = substr(cOutput,"#{f1}",""+nPos)
