Skip to content

Commit

Permalink
Use qRound. Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 2, 2013
1 parent 702b14a commit 3ba1c3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/heatmap/heatmapgui.cpp
Expand Up @@ -285,7 +285,7 @@ void HeatmapGui::on_rowsSpinBox_valueChanged()
mRows = rowsSpinBox->value();
mYcellsize = mBBox.height() / mRows;
mXcellsize = mYcellsize;
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
mColumns = max( qRound( mBBox.width() / mXcellsize ), 1 );

updateSize();
}
Expand All @@ -295,7 +295,7 @@ void HeatmapGui::on_columnsSpinBox_valueChanged()
mColumns = columnsSpinBox->value();
mXcellsize = mBBox.width() / mColumns;
mYcellsize = mXcellsize;
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
mRows = max( qRound( mBBox.height() / mYcellsize ), 1 );

updateSize();
}
Expand All @@ -304,8 +304,8 @@ void HeatmapGui::on_cellXLineEdit_editingFinished()
{
mXcellsize = cellXLineEdit->text().toDouble();
mYcellsize = mXcellsize;
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
mRows = max( qRound( mBBox.height() / mYcellsize ), 1 );
mColumns = max( qRound( mBBox.width() / mXcellsize ), 1 );

updateSize();
}
Expand All @@ -314,8 +314,8 @@ void HeatmapGui::on_cellYLineEdit_editingFinished()
{
mYcellsize = cellYLineEdit->text().toDouble();
mXcellsize = mYcellsize;
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );
mRows = max( qRound( mBBox.height() / mYcellsize ), 1 );
mColumns = max( qRound( mBBox.width() / mXcellsize ), 1 );

updateSize();
}
Expand Down

0 comments on commit 3ba1c3c

Please sign in to comment.