Skip to content

Commit

Permalink
Call animateClick through a lambda instead
Browse files Browse the repository at this point in the history
For Qt5 compatibility, which doesn't provide a no-arg overload.
  • Loading branch information
askmeaboutlo0m committed Aug 28, 2023
1 parent 9b243ee commit 1a4b8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/desktop/dialogs/flipbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1a4b8b2

Please sign in to comment.