forked from qt-creator/qt-creator
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:
@@ -60,6 +60,7 @@ BoostTestSettings::BoostTestSettings(Id settingsId)
|
|||||||
|
|
||||||
seed.setSettingsKey("Seed");
|
seed.setSettingsKey("Seed");
|
||||||
seed.setEnabled(false);
|
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.setLabelText(Tr::tr("Seed:"));
|
||||||
seed.setToolTip(Tr::tr("A seed of 0 means no randomization. A value of 1 uses the current "
|
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."));
|
"time, any other value is used as random seed generator."));
|
||||||
|
@@ -43,6 +43,7 @@ GTestSettings::GTestSettings(Id settingsId)
|
|||||||
|
|
||||||
seed.setSettingsKey("Seed");
|
seed.setSettingsKey("Seed");
|
||||||
seed.setSpecialValueText({});
|
seed.setSpecialValueText({});
|
||||||
|
seed.setRange(0, 99999);
|
||||||
seed.setEnabled(false);
|
seed.setEnabled(false);
|
||||||
seed.setLabelText(Tr::tr("Seed:"));
|
seed.setLabelText(Tr::tr("Seed:"));
|
||||||
seed.setToolTip(Tr::tr("A seed of 0 generates a seed based on the current timestamp."));
|
seed.setToolTip(Tr::tr("A seed of 0 generates a seed based on the current timestamp."));
|
||||||
|
Reference in New Issue
Block a user