Move autoexpand from MultiViewPane to base HDrawer

This commit is contained in:
miruka
2020-07-14 03:19:57 -04:00
parent 4b7ce1a195
commit f84b13c657
3 changed files with 10 additions and 11 deletions

View File

@@ -14,8 +14,6 @@ HDrawer {
property int buttonWidth:
buttonRepeater.count > 0 ? buttonRepeater.itemAt(0).implicitWidth : 0
property bool requireDefaultSize: false
readonly property alias buttonRepeater: buttonRepeater
readonly property alias swipeView: swipeView
@@ -23,13 +21,6 @@ HDrawer {
defaultSize: buttonRepeater.count * buttonWidth
minimumSize: requireDefaultSize ? defaultSize : buttonWidth
Behavior on minimumSize {
HNumberAnimation {
overshoot: requireDefaultSize ? 1 : 4
factor: 0.75
}
}
HColumnLayout {
anchors.fill: parent