aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
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<Scatterplot>("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();