[ui] resize statistical summary columns to content

This commit is contained in:
nirvn 2018-02-13 17:45:29 +07:00
parent bf4ba08a40
commit ca0cb9b868

View File

@ -251,6 +251,8 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics()
row++; row++;
} }
mStatisticsTable->resizeColumnsToContents();
gathererFinished(); gathererFinished();
} }
@ -259,7 +261,7 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
if ( !mGatherer ) if ( !mGatherer )
return; return;
QVariantList values = mGatherer->values();//mLayer->getValues( field, ok, selectedOnly ); QVariantList values = mGatherer->values();
QList< QgsStringStatisticalSummary::Statistic > statsToDisplay; QList< QgsStringStatisticalSummary::Statistic > statsToDisplay;
QgsStringStatisticalSummary::Statistics statsToCalc = nullptr; QgsStringStatisticalSummary::Statistics statsToCalc = nullptr;
@ -288,6 +290,8 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
row++; row++;
} }
mStatisticsTable->resizeColumnsToContents();
gathererFinished(); gathererFinished();
} }
@ -411,6 +415,8 @@ void QgsStatisticalSummaryDockWidget::updateDateTimeStatistics()
row++; row++;
} }
mStatisticsTable->resizeColumnsToContents();
gathererFinished(); gathererFinished();
} }