From 1a4b8b246639a3b5308557955967720854c253da Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Mon, 28 Aug 2023 06:08:34 +0200 Subject: [PATCH] Call animateClick through a lambda instead For Qt5 compatibility, which doesn't provide a no-arg overload. --- src/desktop/dialogs/flipbook.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/desktop/dialogs/flipbook.cpp b/src/desktop/dialogs/flipbook.cpp index afb488781d..860e62dae3 100644 --- a/src/desktop/dialogs/flipbook.cpp +++ b/src/desktop/dialogs/flipbook.cpp @@ -31,9 +31,9 @@ Flipbook::Flipbook(State &state, QWidget *parent) m_refreshAction = new QAction{this}; addAction(m_refreshAction); - connect( - m_refreshAction, &QAction::triggered, m_ui->refreshButton, - QOverload<>::of(&QAbstractButton::animateClick)); + connect(m_refreshAction, &QAction::triggered, this, [this] { + m_ui->refreshButton->animateClick(); + }); m_timer = new QTimer(this);