searchbar aligned
This commit is contained in:
@@ -13,11 +13,14 @@ ColumnLayout
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
spacing: Dimensions.l
|
||||
|
||||
Component.onCompleted: employeesStack.pop()
|
||||
// property var availableFilters: ["Name", "Adresse", "PLZ", "Ort", "Status"]
|
||||
RowLayout
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
spacing: Dimensions.l
|
||||
SearchBar
|
||||
{
|
||||
id:searchBar
|
||||
@@ -71,98 +74,6 @@ ColumnLayout
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ButtonGroup
|
||||
// {
|
||||
// id: criterion
|
||||
// // buttons: criterion.children
|
||||
// onClicked:
|
||||
// {
|
||||
// viewEmployees(criterion.checkedButton.text)
|
||||
// }
|
||||
// }
|
||||
|
||||
// ColumnLayout
|
||||
// {
|
||||
// id: tableParent
|
||||
// clip: true
|
||||
// anchors
|
||||
// {
|
||||
|
||||
// top: searchBar.bottom
|
||||
// bottom: parent.bottom
|
||||
// left: parent.left
|
||||
// right: parent.right
|
||||
// }
|
||||
|
||||
// RowLayout
|
||||
// {
|
||||
// id: viewCriterion
|
||||
|
||||
// RadioButton
|
||||
// {
|
||||
// //id: showAll
|
||||
// checked: true
|
||||
// text: qsTr("Alle")
|
||||
// ButtonGroup.group: criterion
|
||||
// //onClicked: viewEmployees(showAll)
|
||||
// }
|
||||
// RadioButton
|
||||
// {
|
||||
// //id: showApplicant
|
||||
// text: qsTr("Bewerber")
|
||||
// ButtonGroup.group: criterion
|
||||
// //onClicked: viewEmployees(showApplicant)
|
||||
// }
|
||||
// RadioButton
|
||||
// {
|
||||
// //id: showEmployee
|
||||
// text: qsTr("Mitarbeiter")
|
||||
// ButtonGroup.group: criterion
|
||||
// //onClicked: viewEmployees(showEmployee)
|
||||
// }
|
||||
|
||||
// CheckBox
|
||||
// {
|
||||
// id: showEveryone
|
||||
// text: qsTr("Alle Stati")
|
||||
// checked: true
|
||||
// onClicked: viewEmployees(criterion.checkedButton.text)
|
||||
// onCheckedChanged:
|
||||
// {
|
||||
// showFired.checked = false
|
||||
// showProcessed.checked = false
|
||||
// }
|
||||
// }
|
||||
// CheckBox
|
||||
// {
|
||||
// id: showProcessed
|
||||
// text: qsTr("Erledigt")
|
||||
// enabled: !showEveryone.checked
|
||||
// checked: false
|
||||
// onClicked:
|
||||
// {
|
||||
// showFired.checked = false
|
||||
// viewEmployees(criterion.checkedButton.text)
|
||||
// }
|
||||
// }
|
||||
// CheckBox
|
||||
// {
|
||||
// id: showFired
|
||||
// text: qsTr("Ausgeschieden")
|
||||
// enabled: !showEveryone.checked
|
||||
// checked: false
|
||||
// onClicked:
|
||||
// {
|
||||
// showProcessed.checked = false
|
||||
// viewEmployees(criterion.checkedButton.text)
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
HorizontalHeaderView
|
||||
{
|
||||
id: employeeTableHeader
|
||||
@@ -203,7 +114,7 @@ ColumnLayout
|
||||
resizableColumns: true
|
||||
model: employee_model
|
||||
selectionBehavior: TableView.SelectRows
|
||||
|
||||
z: 1
|
||||
ScrollBar.vertical: ScrollBar
|
||||
{
|
||||
policy: appliEmpTable.contentHeight > appliEmpTable.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
|
||||
|
||||
Reference in New Issue
Block a user