Skip to content

Commit

Permalink
[ui] resize statistical summary columns to content
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 13, 2018
1 parent bf4ba08 commit ca0cb9b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/qgsstatisticalsummarydockwidget.cpp
Expand Up @@ -251,6 +251,8 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics()
row++;
}

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

Expand All @@ -259,7 +261,7 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
if ( !mGatherer )
return;

QVariantList values = mGatherer->values();//mLayer->getValues( field, ok, selectedOnly );
QVariantList values = mGatherer->values();

QList< QgsStringStatisticalSummary::Statistic > statsToDisplay;
QgsStringStatisticalSummary::Statistics statsToCalc = nullptr;
Expand Down Expand Up @@ -288,6 +290,8 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
row++;
}

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

Expand Down Expand Up @@ -411,6 +415,8 @@ void QgsStatisticalSummaryDockWidget::updateDateTimeStatistics()
row++;
}

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

Expand Down

0 comments on commit ca0cb9b

Please sign in to comment.