Skip to content

Commit 33bea85

Browse files
committed
Add documentation to inputs, and improve readability
See #12 (comment)
1 parent 3bb5b76 commit 33bea85

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

inst/qml/data.qml

+16-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,22 @@ Form
3232
VariablesForm
3333
{
3434
AvailableVariablesList { name: "allVariables" }
35-
AssignedVariablesList { name: "ts"; label: qsTr("Times (t)"); singleVariable: true; allowedColumns: ["scale"] }
36-
AssignedVariablesList { name: "xs"; label: qsTr("Horizontal positions (x)"); singleVariable: true; allowedColumns: ["scale"] }
37-
AssignedVariablesList { name: "ys"; label: qsTr("Vertical positions (y)"); singleVariable: true; allowedColumns: ["scale"] }
35+
36+
AssignedVariablesList {
37+
name: "ts"
38+
label: qsTr("Times (t)")
39+
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the time.")
40+
singleVariable: true
41+
allowedColumns: ["scale"]
42+
}
43+
44+
AssignedVariablesList {
45+
name: "xs"
46+
label: qsTr("Positions (x)")
47+
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the positions.")
48+
singleVariable: true
49+
allowedColumns: ["scale"]
50+
}
3851
}
3952

4053
}

inst/qml/table.qml

+16-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,22 @@ Form
3232
VariablesForm
3333
{
3434
AvailableVariablesList { name: "allVariables" }
35-
AssignedVariablesList { name: "ts"; label: qsTr("Times (t)"); singleVariable: true; allowedColumns: ["scale"] }
36-
AssignedVariablesList { name: "xs"; label: qsTr("Horizontal positions (x)"); singleVariable: true; allowedColumns: ["scale"] }
37-
AssignedVariablesList { name: "ys"; label: qsTr("Vertical positions (y)"); singleVariable: true; allowedColumns: ["scale"] }
35+
36+
AssignedVariablesList {
37+
name: "ts"
38+
label: qsTr("Times (t)")
39+
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the time.")
40+
singleVariable: true
41+
allowedColumns: ["scale"]
42+
}
43+
44+
AssignedVariablesList {
45+
name: "xs"
46+
label: qsTr("Positions (x)")
47+
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the positions.")
48+
singleVariable: true
49+
allowedColumns: ["scale"]
50+
}
3851
}
3952

4053
}

0 commit comments

Comments
 (0)