mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-19 04:18:08 +00:00
40 lines
884 B
QML
40 lines
884 B
QML
import QtQuick 2.7
|
|
|
|
// =============================================================================
|
|
|
|
Loader {
|
|
id: loader
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
property string label
|
|
readonly property int orientation: parent.orientation
|
|
readonly property bool dealWithErrors: parent.dealWithErrors
|
|
|
|
default property var _content: null
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
sourceComponent: orientation === Qt.Horizontal ? hGroup : vGroup
|
|
width: parent.maxItemWidth
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Component {
|
|
id: hGroup
|
|
|
|
FormHGroup {
|
|
_content: loader._content
|
|
label: loader.label
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: vGroup
|
|
|
|
FormVGroup {
|
|
_content: loader._content
|
|
label: loader.label
|
|
}
|
|
}
|
|
}
|