Row color bugfix

This commit is contained in:
Zach Fox 2017-03-21 10:03:22 -07:00
parent 29e97381eb
commit 058faa8c0f

View file

@ -596,7 +596,7 @@ Rectangle {
id: nameCard; id: nameCard;
// Properties // Properties
profileUrl: (model && model.profileUrl) || ""; profileUrl: (model && model.profileUrl) || "";
imageMaskColor: rowColor(styleData.selected, styleData.row % 2, model.isPresent); imageMaskColor: rowColor(styleData.selected, styleData.row % 2, model ? model.isPresent : false);
displayName: styleData.value; displayName: styleData.value;
userName: model ? model.userName : ""; userName: model ? model.userName : "";
connectionStatus: model ? model.connection : ""; connectionStatus: model ? model.connection : "";
@ -903,7 +903,7 @@ Rectangle {
rowDelegate: Rectangle { rowDelegate: Rectangle {
// Size // Size
height: rowHeight; height: rowHeight;
color: rowColor(styleData.selected, styleData.alternate, model ? model.isPresent : true); color: rowColor(styleData.selected, styleData.alternate, true);
} }
// This Item refers to the contents of each Cell // This Item refers to the contents of each Cell
@ -916,7 +916,7 @@ Rectangle {
// Properties // Properties
visible: styleData.role === "userName"; visible: styleData.role === "userName";
profileUrl: (model && model.profileUrl) || ""; profileUrl: (model && model.profileUrl) || "";
imageMaskColor: rowColor(styleData.selected, styleData.row % 2, model.isPresent); imageMaskColor: rowColor(styleData.selected, styleData.row % 2, true);
displayName: ""; displayName: "";
userName: model ? model.userName : ""; userName: model ? model.userName : "";
connectionStatus : model ? model.connection : ""; connectionStatus : model ? model.connection : "";