Skip to content

Commit b84a2ab

Browse files
committed
Add info fields to all forms
Suggested by Bruno
1 parent 9e771f6 commit b84a2ab

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

inst/qml/Data.qml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import JASP 1.0
2424
Form
2525
{
2626

27+
info: qsTr("This example shows how to load a dataset and perform a simple operation on it") // Used for populating the info tab
28+
2729
Text
2830
{
2931
text: qsTr("This example shows how to load a dataset and perform a simple operation on it")

inst/qml/Integer.qml

+5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@ import JASP 1.0
2424
Form
2525
{
2626

27+
info: qsTr("This analysis just adds one to the input. \
28+
It's purpose is to show an easy example of manual input.") // Used for populating the info tab
29+
2730
Text
2831
{
2932
text: qsTr("This example shows how to manually introduce an input and perform a simple operation on it")
3033
}
3134

3235
IntegerField
3336
{
37+
info: qsTr("This is the number that will be used in the operation")
38+
3439
name: "my_number" // This will map to options$my_number in R
3540
label: qsTr("Type a number") // qsTr allows for future translations
3641

inst/qml/Parabola.qml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import JASP 1.0
2323

2424
Form
2525
{
26+
info: qsTr("This example shows how to plot a curve.")
2627

2728
Text
2829
{
@@ -31,6 +32,8 @@ Form
3132

3233
IntegerField
3334
{
35+
info: qsTr("The shape of the parabola is dynamically determined by this number")
36+
3437
name: "a" // This will map to options$a in R
3538
label: qsTr("Type a number") // qsTr allows for future translations
3639

inst/qml/Table.qml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import JASP 1.0
2323

2424
Form
2525
{
26+
info: qsTr("This example shows how to load a dataset and output it as a table")
2627

2728
Text
2829
{

0 commit comments

Comments
 (0)