Code style

This commit is contained in:
2024-11-07 16:39:56 +01:00
parent 33782aa785
commit 29228cf65d
9 changed files with 214 additions and 217 deletions

View File

@@ -5,9 +5,8 @@ import Qt.labs.qmlmodels
Item {
property var availableFilters: ["Name", "Adresse", "PLZ", "Ort"]
SearchBar
{
id:searchBar
@@ -16,11 +15,6 @@ Item {
ColumnLayout
{
// SearchBar
// {
// id:searchBar
// anchors.margins: 9
// }
anchors
{
@@ -30,6 +24,7 @@ Item {
right: parent.right
}
RowLayout
{
// Layout.fillHeight: true
@@ -59,6 +54,7 @@ Item {
}
}
HorizontalHeaderView
{
id: horizontalHeader
@@ -67,44 +63,43 @@ Item {
syncView: testTable
}
TableView
{
id: testTable
Layout.fillHeight: true
Layout.fillWidth: true
columnSpacing: 1
rowSpacing: 2
model: dbm
delegate:Item
{
implicitWidth: 200
implicitHeight: 25
Text
{
Layout.fillWidth: true
text: model.display
}
MouseArea
{
anchors.fill: parent
onClicked: dbm.onRowClicked(row)
}
}
Text
{
Layout.fillWidth: true
text: model.display
}
MouseArea
{
anchors.fill: parent
onClicked: dbm.onRowClicked(row)
}
}
}
Item {
Item
{
Layout.fillHeight: true
Layout.fillWidth: true
}
}
}
}