diff --git a/gui/CustomerTables.qml b/gui/CustomerTables.qml index 4484b03..08ef564 100644 --- a/gui/CustomerTables.qml +++ b/gui/CustomerTables.qml @@ -85,8 +85,8 @@ Item { model: testTable.model } - //columnWidthProvider: function(column) - //{ + // columnWidthProvider: function(column) + // { // switch (column) // { // case 0: return width * 0.2; @@ -96,17 +96,19 @@ Item { // } //return customWidths[column] * width; //return tableColumn.content.implicitWidth // model.columnCount() - // newWidth = columnWidth(column) - // return newWidth + // newWidth = columnWidth(column) + // return newWidth // } Timer { running: true - interval: 100 + interval: 3000 + repeat: true onTriggered: { //testTable.columnWidths[2] = 150 + console.log("Timing..") testTable.forceLayout(); } } @@ -124,14 +126,14 @@ Item { color: selected ? "lightblue" //palette.highlight : (testTable.alternatingRows && row % 2 !== 0 - ? palette.base - : palette.alternateBase) + ? "lightslategray" // palette.base + : "lightsteelblue") //palette.alternateBase) Text { - Layout.fillWidth: true + //Layout.fillWidth: true text: model.display - //elide: Text.ElideRight + elide: Text.ElideRight } MouseArea