@@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_valueChanged()
285
285
mRows = rowsSpinBox->value ();
286
286
mYcellsize = mBBox .height () / mRows ;
287
287
mXcellsize = mYcellsize ;
288
- mColumns = max ( round ( mBBox .width () / mXcellsize ), 1 );
288
+ mColumns = max ( qRound ( mBBox .width () / mXcellsize ), 1 );
289
289
290
290
updateSize ();
291
291
}
@@ -295,7 +295,7 @@ void HeatmapGui::on_columnsSpinBox_valueChanged()
295
295
mColumns = columnsSpinBox->value ();
296
296
mXcellsize = mBBox .width () / mColumns ;
297
297
mYcellsize = mXcellsize ;
298
- mRows = max ( round ( mBBox .height () / mYcellsize ), 1 );
298
+ mRows = max ( qRound ( mBBox .height () / mYcellsize ), 1 );
299
299
300
300
updateSize ();
301
301
}
@@ -304,8 +304,8 @@ void HeatmapGui::on_cellXLineEdit_editingFinished()
304
304
{
305
305
mXcellsize = cellXLineEdit->text ().toDouble ();
306
306
mYcellsize = mXcellsize ;
307
- mRows = max ( round ( mBBox .height () / mYcellsize ), 1 );
308
- mColumns = max ( round ( mBBox .width () / mXcellsize ), 1 );
307
+ mRows = max ( qRound ( mBBox .height () / mYcellsize ), 1 );
308
+ mColumns = max ( qRound ( mBBox .width () / mXcellsize ), 1 );
309
309
310
310
updateSize ();
311
311
}
@@ -314,8 +314,8 @@ void HeatmapGui::on_cellYLineEdit_editingFinished()
314
314
{
315
315
mYcellsize = cellYLineEdit->text ().toDouble ();
316
316
mXcellsize = mYcellsize ;
317
- mRows = max ( round ( mBBox .height () / mYcellsize ), 1 );
318
- mColumns = max ( round ( mBBox .width () / mXcellsize ), 1 );
317
+ mRows = max ( qRound ( mBBox .height () / mYcellsize ), 1 );
318
+ mColumns = max ( qRound ( mBBox .width () / mXcellsize ), 1 );
319
319
320
320
updateSize ();
321
321
}
0 commit comments