Files
metabuilder/qml/Material/MaterialCollapse.qml
johndoe6345789 6e394d7846 style(qt6): 80-char margin enforced — 737 violations → 29 remaining
191 files reformatted across views, components, widgets, hybrid, contexts.
New components: CCreateSchemaDialog, CAddFieldDialog, CAdminContentPanel.
JS helpers: connBadgeStatus/Text, adminStats, exampleLabels, onLevelClicked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:48:39 +00:00

21 lines
464 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Rectangle {
id: collapse
property bool expanded: false
property Component contentComponent
color: "transparent"
Loader {
id: loader
anchors.fill: parent
sourceComponent: expanded ? contentComponent : null
}
height: expanded ? loader.implicitHeight : 0
Behavior on height { NumberAnimation { duration: 200
easing.type: Easing.OutQuad } }
}