summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-03 18:27:44 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-03 12:58:54 -0800
commita75168dcc977cd140783745327ff33de4e37796b (patch)
tree24e1e145cf49446765b109c4d2d6fb72a380a36d /qt-ui/profilegraphics.h
parenta7bdf39339923e3f9390762a53c2093d3a01fd5e (diff)
downloadsubsurface-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.h1
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;