diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-11-30 14:42:42 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-01 05:17:59 +0000 |
commit | 79f7edba15dc4c637c7f19c0770c2ba2721d765a (patch) | |
tree | c76031a09652c306343fd417a6a7d1d80055d1fb /ui/qt/color_utils.h | |
parent | e3fc691368af60bbbaec9e038ee6a6d3b7707955 (diff) | |
download | wireshark-79f7edba15dc4c637c7f19c0770c2ba2721d765a.tar.gz |
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 <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/color_utils.h')
-rw-r--r-- | ui/qt/color_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
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<QRgb> graph_colors_; + static const QList<QRgb> graphColors() { return graph_colors_; } + static QRgb graphColor(int item) { return graph_colors_[item % graph_colors_.size()]; } + signals: public slots: +private: + static const QList<QRgb> graph_colors_; }; #endif // COLOR_UTILS_H |