From eb829cd70e4d7cc3d863cdc199578801c3c82f9a Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 21 May 2015 12:55:35 -0300 Subject: Correct interaction handling. --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 3f2a85e..380d311 100644 --- a/main.cpp +++ b/main.cpp @@ -14,6 +14,7 @@ int main(int argc, char **argv) qmlRegisterType("PM", 1, 0, "Scatterplot"); + // Set up multisampling QSurfaceFormat fmt; fmt.setSamples(16); QSurfaceFormat::setDefaultFormat(fmt); @@ -46,7 +47,7 @@ int main(int argc, char **argv) interactionHandler.get(), SLOT(setSubsample(const arma::mat &))); QObject::connect(interactionHandler.get(), SIGNAL(subsampleChanged(const arma::mat &)), plot, SLOT(setData(const arma::mat &))); - + interactionHandler.get()->setSubsample(Ys); } return app.exec(); -- cgit v1.2.3