@@ -21,14 +21,15 @@ AbstractButton {
22 objectName: "dashDepartments"
22 objectName: "dashDepartments"
24− property int windowHeight: 0
26 property var scope: null
24 property var scope: null
28 property bool showList: false
26 property bool showList: false
30 readonly property var currentDepartment: scope && scope.hasDepartments ? scope.getDepartment(scope.currentDepartmentId) : null
28 readonly property var currentDepartment: scope && scope.hasDepartments ? scope.getDepartment(scope.currentDepartmentId) : null
30+ property alias windowWidth: blackRect.width
31+ property alias windowHeight: blackRect.height
32 // Are we drilling down the tree or up?
33 // Are we drilling down the tree or up?
33 property bool isGoingBack: false
34 property bool isGoingBack: false
@@ -41,11 +42,11 @@ AbstractButton {
43 Rectangle {
44 Rectangle {
44 color: "black"
46 color: "black"
45 opacity: 0.3
47 opacity: 0.3
47 anchors.top: departmentListView.top
48 anchors.top: departmentListView.top
48− height: windowHeight
49+ anchors.right: parent.right
49 visible: departmentListView.currentItem && departmentListView.currentItem.visible
50 visible: departmentListView.currentItem && departmentListView.currentItem.visible
@@ -95,6 +96,7 @@ AbstractButton {
95 objectName: "departmentListView"
96 objectName: "departmentListView"
96 orientation: ListView.Horizontal
97 orientation: ListView.Horizontal
97 interactive: false
98 interactive: false
99+ clip: root.width != windowWidth
98 model: ListModel {
100 model: ListModel {
99 id: departmentModel
101 id: departmentModel
100 // We have two roles
102 // We have two roles