Skip to content

Commit 3ba1c3c

Browse files
committed
Use qRound. Fix windows build
1 parent 702b14a commit 3ba1c3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plugins/heatmap/heatmapgui.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_valueChanged()
285285
mRows = rowsSpinBox->value();
286286
mYcellsize = mBBox.height() / mRows;
287287
mXcellsize = mYcellsize;
288-
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
288+
mColumns = max( qRound( mBBox.width() / mXcellsize ), 1 );
289289

290290
updateSize();
291291
}
@@ -295,7 +295,7 @@ void HeatmapGui::on_columnsSpinBox_valueChanged()
295295
mColumns = columnsSpinBox->value();
296296
mXcellsize = mBBox.width() / mColumns;
297297
mYcellsize = mXcellsize;
298-
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
298+
mRows = max( qRound( mBBox.height() / mYcellsize ), 1 );
299299

300300
updateSize();
301301
}
@@ -304,8 +304,8 @@ void HeatmapGui::on_cellXLineEdit_editingFinished()
304304
{
305305
mXcellsize = cellXLineEdit->text().toDouble();
306306
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 );
309309

310310
updateSize();
311311
}
@@ -314,8 +314,8 @@ void HeatmapGui::on_cellYLineEdit_editingFinished()
314314
{
315315
mYcellsize = cellYLineEdit->text().toDouble();
316316
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 );
319319

320320
updateSize();
321321
}

0 commit comments

Comments
 (0)