From 1aa39a3a631d4f3e0f4c6ec9e0186404c324b061 Mon Sep 17 00:00:00 2001 From: Matthew Waltz Date: Tue, 29 Oct 2024 11:07:55 -0600 Subject: [PATCH] fix visualizer widget timer --- gui/qt/debugger/visualizerdisplaywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/debugger/visualizerdisplaywidget.cpp b/gui/qt/debugger/visualizerdisplaywidget.cpp index 150f8d9f..ddd35d38 100644 --- a/gui/qt/debugger/visualizerdisplaywidget.cpp +++ b/gui/qt/debugger/visualizerdisplaywidget.cpp @@ -15,6 +15,7 @@ VisualizerDisplayWidget::VisualizerDisplayWidget(QWidget *parent) : QWidget{pare setContextMenuPolicy(Qt::CustomContextMenu); connect(this, &VisualizerDisplayWidget::customContextMenuRequested, this, &VisualizerDisplayWidget::contextMenu); + connect(m_refreshTimer, &QTimer::timeout, this, &VisualizerDisplayWidget::draw); m_image = new QImage(LCD_WIDTH, LCD_HEIGHT, QImage::Format_RGB32); } @@ -93,7 +94,6 @@ void VisualizerDisplayWidget::setRefreshRate(int rate) { if (!rate) { return; } - connect(m_refreshTimer, SIGNAL(timeout()), this, SLOT(draw())); m_refreshTimer->stop(); m_refreshTimer->setInterval(1000 / rate); m_refreshTimer->setTimerType(Qt::PreciseTimer);