mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
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>
21 lines
464 B
QML
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 } }
|
|
}
|