Skip to content

Commit

Permalink
Replace mainWindow by dataSetInfo (#201)
Browse files Browse the repository at this point in the history
QML analysis files should not use objects that are not defined outside the QMLComponents library.

Cf jasp-stats/jasp-desktop#5281
  • Loading branch information
boutinb authored Oct 19, 2023
1 parent 3bbe135 commit a773c3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/qml/RobustBayesianMetaAnalysis.qml
Original file line number Diff line number Diff line change
Expand Up @@ -147,40 +147,40 @@ Form
label: qsTr("Cohen's d")
value: "cohensD"
id: measuresCohensD
enabled: mainWindow.dataAvailable
checked: mainWindow.dataAvailable
enabled: dataSetInfo.dataAvailable
checked: dataSetInfo.dataAvailable
}

RadioButton
{
label: qsTr("Correlations")
value: "correlation"
id: measuresCorrelation
enabled: mainWindow.dataAvailable
enabled: dataSetInfo.dataAvailable
}

RadioButton
{
label: qsTr("Log odds ratios")
value: "logOr"
id: measureslogOr
enabled: mainWindow.dataAvailable
enabled: dataSetInfo.dataAvailable
}

RadioButton
{
label: qsTr("Unstandardized effect sizes")
value: "unstandardizedEffectSizes"
id: measuresGeneral
enabled: mainWindow.dataAvailable
enabled: dataSetInfo.dataAvailable
}

RadioButton
{
label: qsTr("Fitted model")
value: "fittedModel"
id: measuresFitted
checked: !mainWindow.dataAvailable
checked: !dataSetInfo.dataAvailable
}
}

Expand Down

0 comments on commit a773c3d

Please sign in to comment.