Adjust customers table layout

This commit is contained in:
2024-11-11 09:28:35 +01:00
parent 18c600c7c7
commit bde021c7d3
2 changed files with 10 additions and 9 deletions

View File

@@ -3,8 +3,9 @@ import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.qmlmodels
Item {
anchors.fill: parent
//color: "lightslategrey"
property var availableFilters: ["Name", "Adresse", "PLZ", "Ort"]
SearchBar
@@ -15,6 +16,7 @@ Item {
ColumnLayout
{
id: tableColumn
anchors
{
@@ -22,7 +24,6 @@ Item {
bottom: parent.bottom
left: parent.left
right: parent.right
}
RowLayout
@@ -74,8 +75,6 @@ Item {
model: dbm
selectionBehavior: TableView.SelectRows
selectionModel: ItemSelectionModel
{
id: selModel
model: testTable.model
@@ -86,7 +85,7 @@ Item {
{
required property bool selected
required property bool current
implicitWidth: 200
implicitWidth: tableColumn.width / testTable.columns
implicitHeight: 25
color: selected? "lightblue": palette.base
@@ -129,3 +128,4 @@ Item {

View File

@@ -1,4 +1,5 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls