forked from qt-creator/qt-creator
Replace static_casts by QOverload where possible
Mainly to get rid of the QProcess::finished deprecation warning. Also adjust coding style in the surrounding connects when needed. Change-Id: I12f9b248c7974b892c4a069356e578e80f8c59e9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -365,15 +365,14 @@ QWidget *FontSettingsPage::widget()
|
||||
connect(d_ptr->m_ui->fontComboBox, &QFontComboBox::currentFontChanged,
|
||||
this, &FontSettingsPage::fontSelected);
|
||||
connect(d_ptr->m_ui->sizeComboBox,
|
||||
static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),
|
||||
QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
||||
this, &FontSettingsPage::fontSizeSelected);
|
||||
connect(d_ptr->m_ui->zoomSpinBox,
|
||||
static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
|
||||
connect(d_ptr->m_ui->zoomSpinBox, QOverload<int>::of(&QSpinBox::valueChanged),
|
||||
this, &FontSettingsPage::fontZoomChanged);
|
||||
connect(d_ptr->m_ui->antialias, &QCheckBox::toggled,
|
||||
this, &FontSettingsPage::antialiasChanged);
|
||||
connect(d_ptr->m_ui->schemeComboBox,
|
||||
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, &FontSettingsPage::colorSchemeSelected);
|
||||
connect(d_ptr->m_ui->copyButton, &QPushButton::clicked,
|
||||
this, &FontSettingsPage::openCopyColorSchemeDialog);
|
||||
|
||||
Reference in New Issue
Block a user