AutoTest: Fix seed ranges

Tweak the default range of 0..99 resulting from using
a QSpinBox to some wider range.

Change-Id: Id1a64e283bee96d31df8bbad2f6e8039675df817
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-06-29 14:08:30 +02:00
parent db140d7d57
commit a213de7a50
2 changed files with 2 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ BoostTestSettings::BoostTestSettings(Id settingsId)
seed.setSettingsKey("Seed");
seed.setEnabled(false);
seed.setRange(0, INT_MAX); // UINT_MAX would be correct, but inner QSpinBox is limited to int
seed.setLabelText(Tr::tr("Seed:"));
seed.setToolTip(Tr::tr("A seed of 0 means no randomization. A value of 1 uses the current "
"time, any other value is used as random seed generator."));

View File

@@ -43,6 +43,7 @@ GTestSettings::GTestSettings(Id settingsId)
seed.setSettingsKey("Seed");
seed.setSpecialValueText({});
seed.setRange(0, 99999);
seed.setEnabled(false);
seed.setLabelText(Tr::tr("Seed:"));
seed.setToolTip(Tr::tr("A seed of 0 generates a seed based on the current timestamp."));