mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[ui] resize statistical summary columns to content
This commit is contained in:
parent
bf4ba08a40
commit
ca0cb9b868
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user