Files
metabuilder/qml/MetaBuilder/LuaTestInputPanel.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

65 lines
1.7 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QmlComponents 1.0
ColumnLayout {
id: testInputPanel
Layout.preferredWidth: 280
Layout.fillHeight: true
spacing: 8
property var params: []
signal executeTest(var args)
signal paramValueChanged(int index, string value)
CText { variant: "h4"; text: "Test Parameters" }
ScrollView {
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
ColumnLayout {
width: parent.width
spacing: 6
Repeater {
model: params.length
delegate: ColumnLayout {
Layout.fillWidth: true
spacing: 2
CText {
variant: "caption"
text: params[index].name + " (
" + params[index].type + ")"
}
CTextField {
Layout.fillWidth: true
placeholderText: "Enter " + params[index].name + "..."
text: params[index].value || ""
onTextChanged: testInputPanel.paramValueChanged(index,
text)
}
}
}
}
}
CButton {
text: "Execute Test"
variant: "primary"
Layout.fillWidth: true
onClicked: {
var args = [];
for (var i = 0; i < params.length; i++) {
args.push(params[i].name + " = " +
JSON.stringify(params[i].value || ""));
}
testInputPanel.executeTest(args)
}
}
}