From 0b407af04c39376742612fc3e70b9566688d7866 Mon Sep 17 00:00:00 2001 From: Srivats P Date: Thu, 8 Feb 2018 19:04:29 +0530 Subject: [PATCH] Use alternate row colors for port stats window This makes it more readable. Unfortunately, the alternate row colors don't apply to the row headers. QHeaderView is supposed to support QBackgroundRole but there's a long pending bug on the Qt side for the same - https://bugreports.qt.io/browse/QTBUG-31804 --- client/portstatswindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/portstatswindow.cpp b/client/portstatswindow.cpp index 55f8284..13b9eeb 100644 --- a/client/portstatswindow.cpp +++ b/client/portstatswindow.cpp @@ -49,6 +49,7 @@ PortStatsWindow::PortStatsWindow(PortGroupList *pgl, QWidget *parent) else tvPortStats->setModel(model); + tvPortStats->setAlternatingRowColors(true); tvPortStats->verticalHeader()->setHighlightSections(false); tvPortStats->verticalHeader()->setDefaultSectionSize( tvPortStats->verticalHeader()->minimumSectionSize());