From b7f6bef398c01ce29663f5599762a38c119b5e3a Mon Sep 17 00:00:00 2001 From: mgrojo Date: Sun, 29 Sep 2019 22:36:15 +0200 Subject: [PATCH] Fix compilation error with Qt version used by Travis This is another way to solve the overload. --- src/TableBrowser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TableBrowser.cpp b/src/TableBrowser.cpp index 38509007..c6fa1803 100644 --- a/src/TableBrowser.cpp +++ b/src/TableBrowser.cpp @@ -132,7 +132,8 @@ TableBrowser::TableBrowser(QWidget* parent) : connect(ui->fontComboBox, &QFontComboBox::currentFontChanged, this, [this](const QFont &font) { modifyColumnFormat(ui->dataTable->colsInSelection(), [font](CondFormat& format) { format.setFontFamily(font.family()); }); }); - connect(ui->fontSizeBox, QOverload::of(&QSpinBox::valueChanged), this, [this](int pointSize) { + connect(ui->fontSizeBox, static_cast(&QSpinBox::valueChanged), this, + [this](int pointSize) { modifyColumnFormat(ui->dataTable->colsInSelection(), [pointSize](CondFormat& format) { format.setFontPointSize(pointSize); }); });