aboutsummaryrefslogtreecommitdiff
path: root/barchart.h
diff options
context:
space:
mode:
Diffstat (limited to 'barchart.h')
-rw-r--r--barchart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/barchart.h b/barchart.h
index 98e3521..28a9fa9 100644
--- a/barchart.h
+++ b/barchart.h
@@ -20,7 +20,7 @@ public:
signals:
void valuesChanged(const arma::vec &values) const;
- void colorScaleChanged(const ColorScale &scale) const;
+ void colorScaleChanged(const ColorScale *scale) const;
void selectionChanged(const std::vector<bool> &selection) const;
void selectionInteractivelyChanged(const std::vector<bool> &selection) const;
void itemBrushed(int item) const;
@@ -28,7 +28,7 @@ signals:
public slots:
void setValues(const arma::vec &values);
- void setColorScale(const ColorScale &scale);
+ void setColorScale(const ColorScale *scale);
void setSelection(const std::vector<bool> &selection);
void brushItem(int item);
@@ -71,7 +71,7 @@ private:
int itemAt(float x, bool includeSelectorWidth = false) const;
arma::vec m_values;
- ColorScale m_colorScale;
+ const ColorScale *m_colorScale;
std::vector<int> m_originalIndices, m_currentIndices;
LinearScale<float> m_scale;
};