Skip to content

Commit

Permalink
again issue with qOverload on Qt v5.8.0...
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruel committed Jul 2, 2020
1 parent fe3fdba commit da016e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hmi/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,11 @@ MainWindow::MainWindow(QWidget *parent) :
connect(_ui->debugBox, &QAbstractButton::toggled, this, &MainWindow::onDebugToggled);
connect(_ui->pauseButton, &QAbstractButton::clicked, this, &MainWindow::onPauseClicked);


connect(_ui->debugSB, qOverload<int>(&QSpinBox::valueChanged), this, &MainWindow::onDebugValue);
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
connect(_ui->debugSB, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &MainWindow::onDebugValue);
#else
connect(_ui->debugSB, qOverload<int>(&QSpinBox::valueChanged), this, &MainWindow::onDebugValue);
#endif

}

MainWindow::~MainWindow()
Expand Down

0 comments on commit da016e7

Please sign in to comment.