Drop Qt5: Various plugins: Get rid of QOverload

Change-Id: I4913044f8897fd3449dbb537e4af6785eb3ad447
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-19 23:43:58 +02:00
parent ae4db886f3
commit e32ebe2146
25 changed files with 44 additions and 66 deletions

View File

@@ -245,24 +245,23 @@ QWidget *GeneralSettingsPage::widget()
updateFontStyleSelector();
updateFontFamilySelector();
connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this]() {
connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this] {
updateFont();
updateFontStyleSelector();
updateFontSizeSelector();
updateFont(); // changes that might have happened when updating the selectors
});
connect(m_widget->styleComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, [this]() {
connect(m_widget->styleComboBox, &QComboBox::currentIndexChanged, this, [this] {
updateFont();
updateFontSizeSelector();
updateFont(); // changes that might have happened when updating the selectors
});
connect(m_widget->sizeComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
connect(m_widget->sizeComboBox, &QComboBox::currentIndexChanged,
this, &GeneralSettingsPage::updateFont);
connect(m_widget->zoomSpinBox, QOverload<int>::of(&QSpinBox::valueChanged),
connect(m_widget->zoomSpinBox, &QSpinBox::valueChanged,
this, [this](int value) { m_fontZoom = value; });
m_homePage = LocalHelpManager::homePage();