aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-11 20:37:33 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-11 20:37:33 -0200
commit893380be1bde766736c1e099731bacb87f239a3a (patch)
treed02b188f44102178847c9ba443774c64cedfd13d /main.cpp
parentb722ac36aef378ed9837f7f4595b4ce2d255f4ac (diff)
BarChart: correctly displays current selection.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a124ac3..6eed197 100644
--- a/main.cpp
+++ b/main.cpp
@@ -212,6 +212,8 @@ int main(int argc, char **argv)
&cpSelectionHandler, &SelectionHandler::setSelection);
QObject::connect(&cpSelectionHandler, &SelectionHandler::selectionChanged,
m->cpPlot, &Scatterplot::setSelection);
+ QObject::connect(&cpSelectionHandler, &SelectionHandler::selectionChanged,
+ m->cpBarChart, &BarChart::setSelection);
SelectionHandler rpSelectionHandler(X.n_rows - cpIndices.n_elem);
QObject::connect(m->rpPlot, &Scatterplot::selectionInteractivelyChanged,
@@ -220,6 +222,8 @@ int main(int argc, char **argv)
&rpSelectionHandler, &SelectionHandler::setSelection);
QObject::connect(&rpSelectionHandler, &SelectionHandler::selectionChanged,
m->rpPlot, &Scatterplot::setSelection);
+ QObject::connect(&rpSelectionHandler, &SelectionHandler::selectionChanged,
+ m->rpBarChart, &BarChart::setSelection);
// Brushing between bar chart and respective scatterplot
BrushingHandler cpBrushHandler;