From 79f7edba15dc4c637c7f19c0770c2ba2721d765a Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 30 Nov 2015 14:42:42 -0800 Subject: Qt: Don't expose ColorUtils::graph_colors_. Make graph_colors_ private and accessible via getters. Blind attempt at fixing bug 11833. Bug: 11833 Change-Id: I03b7e90c686374d2d0f046f7e5fe87e43939dc82 Reviewed-on: https://code.wireshark.org/review/12318 Reviewed-by: Gerald Combs Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/color_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui/qt/color_utils.h') diff --git a/ui/qt/color_utils.h b/ui/qt/color_utils.h index 30f8b170fd..8b1051837b 100644 --- a/ui/qt/color_utils.h +++ b/ui/qt/color_utils.h @@ -53,11 +53,15 @@ public: static const QColor expert_color_foreground; /* black */ static const QColor hidden_proto_item; /* gray */ - static const QList graph_colors_; + static const QList graphColors() { return graph_colors_; } + static QRgb graphColor(int item) { return graph_colors_[item % graph_colors_.size()]; } + signals: public slots: +private: + static const QList graph_colors_; }; #endif // COLOR_UTILS_H -- cgit v1.2.1