Fix compilation error with Qt version used by Travis

This is another way to solve the overload.
This commit is contained in:
mgrojo
2019-09-29 22:36:15 +02:00
parent 9b1561afd0
commit b7f6bef398
+2 -1
View File
@@ -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<int>::of(&QSpinBox::valueChanged), this, [this](int pointSize) {
connect(ui->fontSizeBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this,
[this](int pointSize) {
modifyColumnFormat(ui->dataTable->colsInSelection(), [pointSize](CondFormat& format) { format.setFontPointSize(pointSize); });
});