summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-01-23 12:09:08 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-01-23 12:09:08 +0100
commit20a7e68346b07bc47f1ddf425aacf13ac3c339e4 (patch)
tree8208b3739f8024036bfce69d69d4ecb338bc54a9 /main.cpp
parent2e1f388c03b6384485e1fe9f2ec708c3b7104d3b (diff)
add support of rpi zero 2w hostname
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 ddb71d0..60ae18c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -20,10 +20,14 @@ int main(
qmlRegisterType<QmlCustomPlot>("QmlCustomPlot", 1, 0, "QmlCustomPlot");
auto pixelsPlot = new QCustomPlot();
+#ifdef QCUSTOMPLOT_USE_OPENGL
pixelsPlot->setOpenGl(true);
+#endif
auto profilePlot = new QCustomPlot();
+#ifdef QCUSTOMPLOT_USE_OPENGL
profilePlot->setOpenGl(true);
+#endif
engine.rootContext()->setContextProperty("pixelsPlot", pixelsPlot);
engine.rootContext()->setContextProperty("profilePlot", profilePlot);