70 lines
1.5 KiB
QML
70 lines
1.5 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
import Qt.labs.qmlmodels
|
|
|
|
ColumnLayout
|
|
{
|
|
anchors.fill: parent
|
|
spacing: Dimensions.l
|
|
function viewOffers(criterion)
|
|
{
|
|
//offer_model.viewCriterion(criterion)
|
|
}
|
|
|
|
RowLayout
|
|
{
|
|
Layout.fillWidth: true
|
|
spacing: Dimensions.l
|
|
SearchBar
|
|
{
|
|
id: searchBar
|
|
}
|
|
QuickFilter
|
|
{
|
|
onSelectedChanged: (name) =>
|
|
{
|
|
business_model.viewCriterion(name)
|
|
}
|
|
|
|
model: ListModel
|
|
{
|
|
ListElement
|
|
{
|
|
name: "Alle"
|
|
text: qsTr("Alle")
|
|
selected: true
|
|
}
|
|
ListElement
|
|
{
|
|
name: "Offen"
|
|
text: qsTr("Offen")
|
|
selected: false
|
|
}
|
|
ListElement
|
|
{
|
|
name: "Abgesagt"
|
|
text: qsTr("Abgesagt")
|
|
selected: false
|
|
}
|
|
}
|
|
}
|
|
Button
|
|
{
|
|
id: addOfferBtn
|
|
text: qsTr("Angebote Hinzufügen")
|
|
icon.source: "qrc:/images/PlusCircle.svg"
|
|
Layout.alignment: Qt.AlignRight
|
|
flat: true
|
|
//onClicked: appLoader.source = "AddOffer.qml"
|
|
}
|
|
}
|
|
Item {
|
|
id: spacer
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
|
|
}
|