added BusinessDAO
This commit is contained in:
@@ -6,7 +6,6 @@ import QtQuick.Controls.Fusion
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
//color: "lightslategrey"
|
||||
property var availableFilters: ["Name", "Adresse", "PLZ", "Ort"]
|
||||
id: test
|
||||
|
||||
@@ -19,10 +18,8 @@ Item {
|
||||
Button
|
||||
{
|
||||
id: addBusinessBtn
|
||||
//icon.source: "../images/addbusiness.svg"
|
||||
icon.source: "qrc:/images/addbusiness.svg"
|
||||
icon.color: "olive"
|
||||
//width: icon.width
|
||||
anchors.right: parent.right
|
||||
flat: true
|
||||
onClicked: appLoader.source = "AddCustomer.qml"
|
||||
@@ -34,7 +31,6 @@ Item {
|
||||
id: tableColumn
|
||||
anchors
|
||||
{
|
||||
|
||||
top: searchBar.bottom
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
@@ -43,10 +39,6 @@ Item {
|
||||
|
||||
RowLayout
|
||||
{
|
||||
// Layout.fillHeight: true
|
||||
// Layout.fillWidth: true
|
||||
|
||||
|
||||
RadioButton
|
||||
{
|
||||
|
||||
@@ -107,7 +99,6 @@ Item {
|
||||
{
|
||||
//property var customWidths: [0.2, 0.5, 0.3, 05, 0.2, 0.2]
|
||||
property real newWidth: 0
|
||||
|
||||
id: testTable
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
@@ -146,8 +137,6 @@ Item {
|
||||
repeat: false
|
||||
onTriggered:
|
||||
{
|
||||
//testTable.columnWidths[2] = 150
|
||||
//console.log("Timing..")
|
||||
testTable.forceLayout();
|
||||
}
|
||||
}
|
||||
@@ -159,11 +148,7 @@ Item {
|
||||
required property bool selected
|
||||
required property bool current
|
||||
implicitWidth: testTable.width / testTable.columns
|
||||
//Layout.fillWidth: true
|
||||
implicitHeight: 25
|
||||
//border.color: "yellow"
|
||||
//border.width: 1
|
||||
//color: selected? "lightblue": palette.base
|
||||
color: selected
|
||||
? addBusinessBtn.palette.highlight //palette.highlight
|
||||
: (testTable.alternatingRows && row % 2 !== 0
|
||||
@@ -183,19 +168,13 @@ Item {
|
||||
|
||||
MouseArea
|
||||
{
|
||||
id: mouseArea
|
||||
property bool hovered: false
|
||||
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
|
||||
|
||||
onClicked:
|
||||
{
|
||||
bm.onRowClicked(row)
|
||||
|
||||
|
||||
|
||||
}
|
||||
onEntered:
|
||||
{
|
||||
@@ -211,7 +190,6 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Item
|
||||
{
|
||||
Layout.fillHeight: true
|
||||
|
||||
Reference in New Issue
Block a user