src/configDialog.cc

changeset 581
c57ddcaf1b58
parent 574
10874674fe30
child 587
507e5d5c348c
equal deleted inserted replaced
580:341580df1e61 581:c57ddcaf1b58
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

mercurial