status-desktop/ui/imports/shared/controls/EmptyShapeRectangleFooterListView.qml
Noelia 1dc03624d6 feat(ProfileShowcase): Drop area behaviour / design when sections expanded
- It updates `ProfileShowcasePanel` with new drop area design adding shadows, changing drop areas design and sizes.

- It adjusts `ShowcaseDelegate` according to design, ie: heigh and background colour on dragActive.

Closes #13509
2024-02-23 10:13:13 +01:00

54 lines
1.2 KiB
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQml 2.15
import StatusQ.Core 0.1
import utils 1.0
StatusListView {
id: root
property string placeholderText
property int footerHeight: 44
property bool footerContentVisible: true
property Component additionalFooterComponent
// TO BE REMOVE: #13498
property bool empty: root.model && root.count === 0
ScrollBar.vertical: null
footer: ColumnLayout {
width: root.width
Item {
Layout.preferredHeight: root.footerHeight
Layout.fillWidth: true
visible: root.empty// TO BE REPLACE root.empty in (#13498): root.empty = root.model && root.count === 0
ShapeRectangle {
id: shapeRectangle
anchors.fill: parent
anchors.margins: 1
visible: root.footerContentVisible
text: root.placeholderText
}
}
Loader {
Layout.preferredWidth: root.width
sourceComponent: root.additionalFooterComponent
}
}
displaced: Transition {
NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad }
}
}