File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
resources/SettingsTabComponents Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 5353 contentItem: Column {
5454 id: layout
5555
56+ property variant columnWidths: [layout .width / 3 , layout .width / 3 , layout .width / 3 ]
57+
5658 width: parent .width
5759 spacing: Constants .insSettingsPopup .columnSpacing
5860
6668 }
6769
6870 ColumnLayout {
69- property variant columnWidths: [layout .width / 3 , layout .width / 3 , layout .width / 3 ]
70-
7171 spacing: 0
7272 width: parent .width
7373 height: Constants .insSettingsPopup .tableHeight
8080 syncView: tableView
8181
8282 delegate: Rectangle {
83- implicitWidth: columnWidths[index]
83+ implicitWidth: layout . columnWidths [index]
8484 implicitHeight: Constants .genericTable .cellHeight
8585 border .color : Constants .genericTable .borderColor
8686
@@ -106,10 +106,10 @@ Item {
106106 }
107107 onPositionChanged: {
108108 if (pressed) {
109- let oldcols = columnWidths .slice ();
109+ let oldcols = layout . columnWidths .slice ();
110110 var delta_x = (mouseX - mouse_x);
111- columnWidths[index] += delta_x;
112- columnWidths[(index + 1 ) % 3 ] -= delta_x;
111+ layout . columnWidths [index] += delta_x;
112+ layout . columnWidths [(index + 1 ) % 3 ] -= delta_x;
113113 tableView .forceLayout ();
114114 }
115115 }
@@ -137,7 +137,7 @@ Item {
137137
138138 Layout .fillWidth : true
139139 Layout .fillHeight : true
140- columnWidths: parent .columnWidths
140+ columnWidths: layout .columnWidths
141141
142142 model: TableModel {
143143 id: tableModel
You can’t perform that action at this time.
0 commit comments