Builtin ability to remember size for HDrawer

This commit is contained in:
miruka
2019-12-10 14:46:05 -04:00
parent 8c8ba221d3
commit f65425957b
5 changed files with 31 additions and 18 deletions

View File

@@ -4,8 +4,9 @@ import "../../Base"
HDrawer {
id: roomSidePane
objectName: "roomPane"
edge: Qt.RightEdge
preferredSize: buttonRepeater.childrenImplicitWidth
defaultSize: buttonRepeater.childrenImplicitWidth
minimumSize:
buttonRepeater.count > 0 ? buttonRepeater.itemAt(0).implicitWidth : 0