Adjust customers table layout - alternate colors for rows 2
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
import QtQml.Models 2.2
|
||||
import QtQml 2.2
|
||||
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
@@ -62,7 +58,6 @@ Item {
|
||||
|
||||
HorizontalHeaderView
|
||||
{
|
||||
// @disable-check M16
|
||||
id: horizontalHeader
|
||||
Layout.fillWidth: true
|
||||
movableColumns: true
|
||||
@@ -90,8 +85,8 @@ Item {
|
||||
model: testTable.model
|
||||
}
|
||||
|
||||
columnWidthProvider: function(column)
|
||||
{
|
||||
//columnWidthProvider: function(column)
|
||||
//{
|
||||
// switch (column)
|
||||
// {
|
||||
// case 0: return width * 0.2;
|
||||
@@ -101,9 +96,9 @@ Item {
|
||||
// }
|
||||
//return customWidths[column] * width;
|
||||
//return tableColumn.content.implicitWidth // model.columnCount()
|
||||
newWidth = columnWidth(column)
|
||||
return newWidth
|
||||
}
|
||||
// newWidth = columnWidth(column)
|
||||
// return newWidth
|
||||
// }
|
||||
|
||||
Timer
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user