forked from qt-creator/qt-creator
connect() to ambiguous signals/slots: Replace static_cast with QOverload
Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -81,14 +81,14 @@ QWidget *GeneralSettingsPage::widget()
|
||||
updateFont(); // changes that might have happened when updating the selectors
|
||||
});
|
||||
|
||||
connect(m_ui->styleComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
connect(m_ui->styleComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, [this]() {
|
||||
updateFont();
|
||||
updateFontSizeSelector();
|
||||
updateFont(); // changes that might have happened when updating the selectors
|
||||
});
|
||||
|
||||
connect(m_ui->sizeComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
connect(m_ui->sizeComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, &GeneralSettingsPage::updateFont);
|
||||
|
||||
m_homePage = LocalHelpManager::homePage();
|
||||
|
||||
Reference in New Issue
Block a user