Skip to content
Permalink
Browse files

[ui] resize statistical summary columns to content

  • Loading branch information
nirvn committed Feb 13, 2018
1 parent bf4ba08 commit ca0cb9b868c31f3e69bd193b27a99d18fc6554c3
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/qgsstatisticalsummarydockwidget.cpp
@@ -251,6 +251,8 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics()
row++;
}

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

@@ -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;
@@ -288,6 +290,8 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
row++;
}

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

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

mStatisticsTable->resizeColumnsToContents();

gathererFinished();
}

0 comments on commit ca0cb9b

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