Skip to content

Commit ca0cb9b

Browse files
committed
[ui] resize statistical summary columns to content
1 parent bf4ba08 commit ca0cb9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/qgsstatisticalsummarydockwidget.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics()
251251
row++;
252252
}
253253

254+
mStatisticsTable->resizeColumnsToContents();
255+
254256
gathererFinished();
255257
}
256258

@@ -259,7 +261,7 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
259261
if ( !mGatherer )
260262
return;
261263

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

264266
QList< QgsStringStatisticalSummary::Statistic > statsToDisplay;
265267
QgsStringStatisticalSummary::Statistics statsToCalc = nullptr;
@@ -288,6 +290,8 @@ void QgsStatisticalSummaryDockWidget::updateStringStatistics()
288290
row++;
289291
}
290292

293+
mStatisticsTable->resizeColumnsToContents();
294+
291295
gathererFinished();
292296
}
293297

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

418+
mStatisticsTable->resizeColumnsToContents();
419+
414420
gathererFinished();
415421
}
416422

0 commit comments

Comments
 (0)