This commit is contained in:
朱子楚\zhuzi
2024-04-28 18:38:37 +08:00
parent effd9f3058
commit c733f3c60e
7 changed files with 148 additions and 28 deletions

View File

@ -468,19 +468,15 @@ FluContentPage{
FluButton{
text: qsTr("Insert a Row")
onClicked: {
if(typeof table_view.current !== 'undefined'){
var index = table_view.currentIndex()
if(index !== -1){
var testObj = genTestObject()
table_view.insertRow(index,testObj)
}
var index = table_view.currentIndex()
if(index !== -1){
var testObj = genTestObject()
table_view.insertRow(index,testObj)
}else{
showWarning(qsTr("Focus not acquired: Please click any item in the form as the target for insertion!"))
}
}
}
}
}