Skip to content

Commit c9c8a73

Browse files
keithel-qtJason Mobarak
authored and
Jason Mobarak
committed
cargo make check-all fixes
1 parent f37b574 commit c9c8a73

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resources/ObservationTabComponents/ObservationTable.qml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ ColumnLayout {
2525
id: observationTableModel
2626

2727
onDataPopulated: {
28-
var widthLeft = observationTable.width
29-
var idealColumnWidths = []
30-
var col
31-
for (col = 0; col < headerRepeater.count; col++) {
28+
var widthLeft = observationTable.width;
29+
var idealColumnWidths = [];
30+
for (var col = 0; col < headerRepeater.count; col++) {
3231
var idealColumnWidth = Math.min(500, observationTableModel.columnWidth(col, tableFont, headerRepeater.itemAt(col).font));
3332
idealColumnWidths.push(idealColumnWidth);
3433
widthLeft -= idealColumnWidths[col];
3534
}
3635
var extraWidth = widthLeft / headerRepeater.count;
37-
for (col = 0; col < headerRepeater.count; col++) {
36+
for (var col = 0; col < headerRepeater.count; col++) {
3837
headerRepeater.itemAt(col).initialWidth = idealColumnWidths[col] + extraWidth;
3938
}
4039
innerTable.forceLayout();

0 commit comments

Comments
 (0)