From 118034b003c9fb3387280c34622d540d530e95bc Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Tue, 26 Feb 2019 20:33:34 -0500 Subject: [PATCH] Fix the just added fun checkerboard pattern in the main frame view --- canframemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canframemodel.cpp b/canframemodel.cpp index 41f4f7c..d4108fa 100644 --- a/canframemodel.cpp +++ b/canframemodel.cpp @@ -247,7 +247,7 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const return msg->bgColor; } } - rowFlip = !rowFlip; + rowFlip = (index.row() % 2); if (rowFlip) return QApplication::palette().color(QPalette::Base); else return QApplication::palette().color(QPalette::AlternateBase); }