Skip to content
Permalink
Browse files

Follow up to 4240807

  • Loading branch information
nyalldawson committed Jul 1, 2013
1 parent 4240807 commit cfebe8f4f8208cb057dc0f5a6b8a75245e158f43
Showing with 14 additions and 8 deletions.
  1. +6 −6 src/plugins/heatmap/heatmapgui.cpp
  2. +2 −2 src/plugins/heatmap/heatmapgui.h
  3. +6 −0 src/plugins/heatmap/heatmapguibase.ui
@@ -280,7 +280,7 @@ void HeatmapGui::on_advancedGroupBox_toggled( bool enabled )
}
}

void HeatmapGui::on_rowsSpinBox_editingFinished()
void HeatmapGui::on_rowsSpinBox_valueChanged()
{
mRows = rowsSpinBox->value();
mYcellsize = mBBox.height() / mRows;
@@ -290,7 +290,7 @@ void HeatmapGui::on_rowsSpinBox_editingFinished()
updateSize();
}

void HeatmapGui::on_columnsSpinBox_editingFinished()
void HeatmapGui::on_columnsSpinBox_valueChanged()
{
mColumns = columnsSpinBox->value();
mXcellsize = mBBox.width() / mColumns;
@@ -304,8 +304,8 @@ void HeatmapGui::on_cellXLineEdit_editingFinished()
{
mXcellsize = cellXLineEdit->text().toDouble();
mYcellsize = mXcellsize;
mRows = max( mBBox.height() / mYcellsize, 1 );
mColumns = max( mBBox.width() / mXcellsize, 1 );
mRows = max( round( mBBox.height() / mYcellsize ), 1 );
mColumns = max( round( mBBox.width() / mXcellsize ), 1 );

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

updateSize();
}
@@ -131,8 +131,8 @@ class HeatmapGui : public QDialog, private Ui::HeatmapGuiBase
void on_browseButton_clicked();
void on_outputRasterLineEdit_editingFinished();
void on_advancedGroupBox_toggled( bool enabled );
void on_rowsSpinBox_editingFinished();
void on_columnsSpinBox_editingFinished();
void on_rowsSpinBox_valueChanged();
void on_columnsSpinBox_valueChanged();
void on_cellXLineEdit_editingFinished();
void on_cellYLineEdit_editingFinished();
void on_radiusFieldCombo_currentIndexChanged( int index );
@@ -166,6 +166,9 @@
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="rowsSpinBox">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
@@ -176,6 +179,9 @@
</item>
<item row="0" column="3">
<widget class="QSpinBox" name="columnsSpinBox">
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
</property>

0 comments on commit cfebe8f

Please sign in to comment.
You can’t perform that action at this time.