diff --git a/client/portstatsmodel.cpp b/client/portstatsmodel.cpp index 1fc0d85..4280b9c 100644 --- a/client/portstatsmodel.cpp +++ b/client/portstatsmodel.cpp @@ -20,7 +20,9 @@ along with this program. If not, see #include "portstatsmodel.h" #include "portgrouplist.h" +#include #include +#include #include #include @@ -272,6 +274,14 @@ QVariant PortStatsModel::headerData(int section, Qt::Orientation orientation, in return QVariant(); } + if ((role == Qt::BackgroundRole) && (orientation == Qt::Vertical) + && qApp->styleSheet().isEmpty()) + { + QPalette palette = QApplication::palette(); + return section & 0x1 ? + palette.base() : palette.alternateBase(); + } + if (role != Qt::DisplayRole) return QVariant();