Code style
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user