summaryrefslogtreecommitdiffstats
path: root/examples/scxml/sudoku/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scxml/sudoku/mainwindow.cpp')
-rw-r--r--examples/scxml/sudoku/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scxml/sudoku/mainwindow.cpp b/examples/scxml/sudoku/mainwindow.cpp
index 3a13010..7f7d99e 100644
--- a/examples/scxml/sudoku/mainwindow.cpp
+++ b/examples/scxml/sudoku/mainwindow.cpp
@@ -174,7 +174,7 @@ MainWindow::MainWindow(QScxmlStateMachine *machine, QWidget *parent) :
foreach (const QFileInfo &sudokuFile, sudokuFiles)
m_chooser->addItem(sudokuFile.completeBaseName(), sudokuFile.absoluteFilePath());
- connect(m_chooser, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ connect(m_chooser, QOverload<int>::of(&QComboBox::currentIndexChanged),
[this] (int index) {
const QString sudokuFile = m_chooser->itemData(index).toString();
const QVariantMap initValues = readSudoku(sudokuFile);