summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/DisplayPlot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/DisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/DisplayPlot.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-qtgui/lib/DisplayPlot.cc b/gr-qtgui/lib/DisplayPlot.cc
index 2b982b77d2..0b422ee1ca 100644
--- a/gr-qtgui/lib/DisplayPlot.cc
+++ b/gr-qtgui/lib/DisplayPlot.cc
@@ -107,19 +107,19 @@ DisplayPlot::setXaxis(double min, double max)
}
void
-DisplayPlot::setTitle(int which, QString title)
+DisplayPlot::setLineLabel(int which, QString label)
{
- _plot_curve[which]->setTitle(title);
+ _plot_curve[which]->setTitle(label);
}
QString
-DisplayPlot::title(int which)
+DisplayPlot::lineLabel(int which)
{
return _plot_curve[which]->title().text();
}
void
-DisplayPlot::setColor(int which, QColor color)
+DisplayPlot::setLineColor(int which, QString color)
{
if (which < _nplots) {
// Set the color of the pen
@@ -144,7 +144,7 @@ DisplayPlot::setColor(int which, QColor color)
}
QColor
-DisplayPlot::getColor(int which) const {
+DisplayPlot::getLineColor(int which) const {
// If that plot doesn't exist then return black.
if (which < _nplots)
return _plot_curve[which]->pen().color();
@@ -154,7 +154,7 @@ DisplayPlot::getColor(int which) const {
// Use a preprocessor macro to create a bunch of hooks for Q_PROPERTY and hence the stylesheet.
#define SETUPLINE(i, im1) \
void DisplayPlot::setLineColor ## i (QColor c) {setColor(im1, c);} \
- const QColor DisplayPlot::getLineColor ## i () const {return getColor(im1);} \
+ const QColor DisplayPlot::getLineColor ## i () const {return getLineColor(im1);} \
void DisplayPlot::setLineWidth ## i (int width) {setLineWidth(im1, width);} \
int DisplayPlot::getLineWidth ## i () const {return getLineWidth(im1);} \
void DisplayPlot::setLineStyle ## i (Qt::PenStyle ps) {setLineStyle(im1, ps);} \