From 271ae19fe73e466e243c15cd721a57fd5d41d53e Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 18 Aug 2024 06:03:25 -0400 Subject: [PATCH] must use overload wrapper on Qt5 --- tools/lammps-gui/chartviewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lammps-gui/chartviewer.cpp b/tools/lammps-gui/chartviewer.cpp index c8fe04ffef..750777af2d 100644 --- a/tools/lammps-gui/chartviewer.cpp +++ b/tools/lammps-gui/chartviewer.cpp @@ -110,8 +110,8 @@ ChartWindow::ChartWindow(const QString &_filename, QWidget *parent) : connect(smooth, &QPushButton::released, this, &ChartWindow::update_smooth); connect(window, &QAbstractSpinBox::editingFinished, this, &ChartWindow::update_smooth); connect(order, &QAbstractSpinBox::editingFinished, this, &ChartWindow::update_smooth); - connect(window, &QSpinBox::valueChanged, this, &ChartWindow::update_smooth); - connect(order, &QSpinBox::valueChanged, this, &ChartWindow::update_smooth); + connect(window, QOverload::of(&QSpinBox::valueChanged), this, &ChartWindow::update_smooth); + connect(order, QOverload::of(&QSpinBox::valueChanged), this, &ChartWindow::update_smooth); connect(normal, &QPushButton::released, this, &ChartWindow::reset_zoom); connect(columns, SIGNAL(currentIndexChanged(int)), this, SLOT(change_chart(int))); installEventFilter(this);