From 20a7e68346b07bc47f1ddf425aacf13ac3c339e4 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Thu, 23 Jan 2025 12:09:08 +0100 Subject: add support of rpi zero 2w hostname --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.cpp') 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", 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); -- cgit v1.2.3-70-g09d2