216 gridlayout->addLayout (labellayout, i + 1, 0); |
216 gridlayout->addLayout (labellayout, i + 1, 0); |
217 |
217 |
218 // Add the widgets |
218 // Add the widgets |
219 for (int j = 0; j < 4; ++j) |
219 for (int j = 0; j < 4; ++j) |
220 { dsb_gridData[i][j] = new QDoubleSpinBox; |
220 { dsb_gridData[i][j] = new QDoubleSpinBox; |
|
221 |
|
222 // Set the maximum angle |
|
223 if (j == 3) |
|
224 dsb_gridData[i][j]->setMaximum (360); |
|
225 |
221 dsb_gridData[i][j]->setValue (g_GridInfo[i].confs[j]->value); |
226 dsb_gridData[i][j]->setValue (g_GridInfo[i].confs[j]->value); |
222 gridlayout->addWidget (dsb_gridData[i][j], i + 1, j + 1); |
227 gridlayout->addWidget (dsb_gridData[i][j], i + 1, j + 1); |
223 } |
228 } |
224 } |
229 } |
225 |
230 |