database connection

This commit is contained in:
2024-11-20 16:36:01 +01:00
parent 3d5035ffb3
commit a9804cbde1
5 changed files with 22 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ Item {
Layout.fillWidth: true
columnSpacing: 1
rowSpacing: 2
model: dbm
model: bm
selectionBehavior: TableView.SelectRows
selectionModel: ItemSelectionModel
@@ -109,7 +109,7 @@ Item {
onClicked:
{
dbm.onRowClicked(row)
bm.onRowClicked(row)
testTable.selectionModel.select(testTable.model.index(row, 0), ItemSelectionModel.SelectCurrent | ItemSelectionModel.Rows)