From ce3e4cbb301229b874074a80db2aa311388d3f82 Mon Sep 17 00:00:00 2001 From: FBartos Date: Wed, 27 Nov 2024 14:29:35 +0100 Subject: [PATCH] fixes: https://github.com/jasp-stats/jasp-test-release/issues/2744 --- inst/qml/bffRegression.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inst/qml/bffRegression.qml b/inst/qml/bffRegression.qml index 30b3354..e0d9fca 100644 --- a/inst/qml/bffRegression.qml +++ b/inst/qml/bffRegression.qml @@ -42,13 +42,17 @@ Form { IntegerField { name: "sampleSize" + id: sampleSize label: qsTr("Sample size") + min: (predictors.value == 0 || sampleSize.value == 0) ? 0 : parseInt(predictors.value) + 2 } - + IntegerField { name: "predictors" - label: qsTr("Predictors") + id: predictors + label: qsTr("Predictors") + max: (predictors.value == 0 || sampleSize.value == 0) ? 2147483647 : parseInt(sampleSize.value) - 2 } }