@@ -105,14 +105,14 @@ BHCDialog::~BHCDialog()
105
105
void BHCDialog::comChk ()
106
106
{
107
107
BHCTab* tab;
108
- int tabId, roat , activTab;
108
+ int tabId, rotate , activTab;
109
109
bool mirX, mirY;
110
110
111
111
tab = (BHCTab*)tabBar->currentWidget ();
112
112
activTab = tabBar->currentIndex ();
113
113
114
114
if (tab->all ->isChecked ()) {
115
- roat = tab->roateInput ->value ();
115
+ rotate = tab->rotateInput ->value ();
116
116
mirX = tab->mirrorX ->isChecked ();
117
117
mirY = tab->mirrorY ->isChecked ();
118
118
@@ -128,7 +128,7 @@ void BHCDialog::comChk()
128
128
}
129
129
130
130
if (tab->all ->isChecked ()) {
131
- tab->roateInput ->setValue (roat );
131
+ tab->rotateInput ->setValue (rotate );
132
132
tab->mirrorX ->setChecked (mirX);
133
133
tab->mirrorY ->setChecked (mirY);
134
134
}
@@ -153,7 +153,7 @@ void BHCDialog::clearAll()
153
153
tab->angleStartInput ->setText (" 0" );
154
154
tab->angleBeetwenInput ->setText (" 0" );
155
155
tab->holesInput ->setText (" 0" );
156
- tab->roateInput ->setValue (0 );
156
+ tab->rotateInput ->setValue (0 );
157
157
158
158
tab->resultTable ->setRowCount (0 );
159
159
tab->resultTable ->clearContents ();
@@ -172,7 +172,7 @@ void BHCDialog::computeButtonClicked()
172
172
int tabId, i, textPosY, textPosX, dir;
173
173
bool ok;
174
174
int holeCount;
175
- qreal dia, firstAngle, angleBeetwen, roate , x, y, ang, xCenter, yCenter;
175
+ qreal dia, firstAngle, angleBeetwen, rotate , x, y, ang, xCenter, yCenter;
176
176
double maxDia;
177
177
178
178
maxDia = 0 ;
@@ -240,7 +240,7 @@ void BHCDialog::computeButtonClicked()
240
240
holeCount = 0 ;
241
241
}
242
242
243
- roate = tab->roateInput ->text ().toInt (&ok);
243
+ rotate = tab->rotateInput ->text ().toInt (&ok);
244
244
245
245
if ((holeCount == 0 ) && (angleBeetwen == 0 )) {
246
246
tab->resultTable ->setRowCount (0 );
@@ -251,7 +251,7 @@ void BHCDialog::computeButtonClicked()
251
251
continue ;
252
252
}
253
253
254
- roate = roate / 10 ;
254
+ rotate = rotate / 10 ;
255
255
256
256
if (holeCount <= 0 ) {
257
257
holeCount = 360 / angleBeetwen;
@@ -261,7 +261,7 @@ void BHCDialog::computeButtonClicked()
261
261
angleBeetwen = double (360 / double (holeCount));
262
262
}
263
263
264
- firstAngle += roate ;
264
+ firstAngle += rotate ;
265
265
266
266
tab->resultTable ->setRowCount (holeCount);
267
267
@@ -377,14 +377,14 @@ void BHCDialog::computeButtonClicked()
377
377
holeCount = 0 ;
378
378
}
379
379
380
- roate = tab->roateInput ->text ().toInt (&ok);
380
+ rotate = tab->rotateInput ->text ().toInt (&ok);
381
381
382
382
if ((holeCount == 0 ) && (angleBeetwen == 0 )) {
383
383
tab->resultTable ->setRowCount (0 );
384
384
continue ;
385
385
}
386
386
387
- roate = roate / 10 ;
387
+ rotate = rotate / 10 ;
388
388
389
389
if (holeCount <= 0 ) {
390
390
holeCount = 360 / angleBeetwen;
@@ -432,7 +432,7 @@ void BHCDialog::computeButtonClicked()
432
432
QString (tr (" Angle between holes : %1" )).arg (angleBeetwen), col);
433
433
drawing->printText (textPosX, textPosY, 4 - dir,
434
434
QString (tr (" Center position : X%1 Y%2" )).arg (xCenter).arg (yCenter), col);
435
- firstAngle += roate ;
435
+ firstAngle += rotate ;
436
436
437
437
tab->resultTable ->setRowCount (holeCount);
438
438
0 commit comments