Use common StackView
This commit is contained in:
@@ -4,6 +4,7 @@ import QtQuick.Controls
|
||||
import Qt.labs.qmlmodels
|
||||
|
||||
ColumnLayout {
|
||||
property var availableFilters: ["Name", "Adresse", "PLZ", "Ort"]
|
||||
|
||||
function viewCriterion(criterion)
|
||||
{
|
||||
@@ -15,7 +16,7 @@ ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: Dimensions.l
|
||||
|
||||
Component.onCompleted: customersStack.pop()
|
||||
Component.onCompleted: contentStack.pop()
|
||||
|
||||
RowLayout
|
||||
{
|
||||
@@ -67,7 +68,7 @@ ColumnLayout {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
icon.source: "qrc:/images/PlusCircle.svg"
|
||||
text: qsTr("Kunde Hinzufügen")
|
||||
onClicked: appLoader.source = "AddCustomer.qml"
|
||||
onClicked: contentStack.push("AddCustomer.qml")
|
||||
}
|
||||
}
|
||||
ColumnLayout
|
||||
@@ -153,7 +154,7 @@ ColumnLayout {
|
||||
|
||||
onDoubleClicked: {
|
||||
business_model.onRowClicked(row);
|
||||
customersStack.push("CustomerDetails.qml", {
|
||||
contentStack.push("CustomerDetails.qml", {
|
||||
selectedClient: row
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user