Commit 50ade9dc authored by Alexander A. Maly's avatar Alexander A. Maly

Allow creating 1*1 Robot field

Set default to 9*9
parent 68cebc3e
Pipeline #1298 passed with stages
in 3 minutes and 9 seconds
......@@ -1066,11 +1066,15 @@ void RobotModule::prepareNewWindow()
nwl->addWidget(lYSize, 1, 0, 1, 1, Qt::AlignCenter);
NewWindow->setFixedSize(250, 150);
eXSizeEdit = new QSpinBox(NewWindow);
eXSizeEdit->setRange(2, MAX_COLUMNS);
eXSizeEdit->setRange(1, MAX_COLUMNS);
eXSizeEdit->setValue(9);
eYSizeEdit = new QSpinBox(NewWindow);
eYSizeEdit->setRange(1, MAX_ROWS);
eYSizeEdit->setValue(9);
eYSizeEdit->setRange(2, MAX_ROWS);
nwl->addWidget(eYSizeEdit, 2, 0, 1, 1, Qt::AlignCenter);
nwl->addWidget(eXSizeEdit, 2, 1, 1, 1, Qt::AlignCenter);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment