Clean-up and rename variables
This commit is contained in:
@@ -90,7 +90,7 @@ ColumnLayout
|
||||
onCurrentTextChanged: isEmptyField()
|
||||
onEditTextChanged: isEmptyField()
|
||||
onActivated: currentValue
|
||||
model: am
|
||||
model: address_model
|
||||
textRole: "display"
|
||||
popup.height: 300
|
||||
popup.y: postcode.y + 5 - (postcode.height * 2)
|
||||
@@ -111,7 +111,7 @@ ColumnLayout
|
||||
editable: true
|
||||
onEditTextChanged: isEmptyField()
|
||||
onCurrentTextChanged: isEmptyField()
|
||||
model: am
|
||||
model: address_model
|
||||
textRole: "city"
|
||||
popup.height: 300
|
||||
popup.y: postcode.y + 5 - (postcode.height * 2)
|
||||
@@ -189,7 +189,7 @@ ColumnLayout
|
||||
id: typeid
|
||||
Layout.fillWidth: true
|
||||
editable: false
|
||||
model: btm
|
||||
model: business_type
|
||||
textRole: "display"
|
||||
}
|
||||
Label
|
||||
|
||||
@@ -104,7 +104,7 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
columnSpacing: 1
|
||||
rowSpacing: 2
|
||||
model: bm
|
||||
model: business_model
|
||||
alternatingRows: true
|
||||
resizableColumns: true // @disable-check M16
|
||||
selectionBehavior: TableView.SelectRows
|
||||
@@ -174,7 +174,7 @@ Item {
|
||||
hoverEnabled: true
|
||||
onClicked:
|
||||
{
|
||||
bm.onRowClicked(row)
|
||||
business_model.onRowClicked(row)
|
||||
}
|
||||
onEntered:
|
||||
{
|
||||
@@ -72,7 +72,7 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
columnSpacing: 1
|
||||
rowSpacing: 2
|
||||
model: bm
|
||||
model: business_model
|
||||
selectionBehavior: TableView.SelectRows
|
||||
selectionModel: ItemSelectionModel
|
||||
|
||||
@@ -109,7 +109,7 @@ Item {
|
||||
|
||||
onClicked:
|
||||
{
|
||||
bm.onRowClicked(row)
|
||||
business_model.onRowClicked(row)
|
||||
testTable.selectionModel.select(testTable.model.index(row, 0), ItemSelectionModel.SelectCurrent | ItemSelectionModel.Rows)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ RowLayout
|
||||
onClicked:
|
||||
{
|
||||
// TODO: here we should call the model
|
||||
appLoader.source = "CustomerTables.qml"
|
||||
appLoader.source = "CustomerTable.qml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ RowLayout
|
||||
implicitWidth: mitarbeiter.implicitContentWidth + 10
|
||||
onClicked:
|
||||
{
|
||||
appLoader.source = "EmployeTables.qml"
|
||||
appLoader.source = "EmployeeTable.qml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user