diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-03 18:27:44 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-03 12:58:54 -0800 |
commit | a75168dcc977cd140783745327ff33de4e37796b (patch) | |
tree | 24e1e145cf49446765b109c4d2d6fb72a380a36d /qt-ui/profilegraphics.h | |
parent | a7bdf39339923e3f9390762a53c2093d3a01fd5e (diff) | |
download | subsurface-a75168dcc977cd140783745327ff33de4e37796b.tar.gz |
Add legend for the Partial Gass Pressure if active.
This patch adds legend for the partial gass pressures if the
graphs are active. when enabling / disabling the square
that represents the color of a gas will also appear / disappear.
Fixes: #272
[Dirk Hohndel: minor changes to layout and whitespace]
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 059b66785..2cd5b44d2 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -185,6 +185,7 @@ private: QColor getColor(const color_indice_t i); QColor get_sac_color(int sac, int avg_sac); void scrollViewTo(const QPoint pos); + void createPPLegend(QString tr, const QColor& c, QPointF& legendPos); QPen defaultPen; QBrush defaultBrush; |