forked from qt-creator/qt-creator
Replace manual signal blocking/unblocking with QSignalBlocker
Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -117,9 +117,10 @@ void DocumentWarningWidget::refreshContent()
|
||||
m_continueButton->setText(tr("OK"));
|
||||
} else {
|
||||
m_headerLabel->setText(tr("This QML file contains features which are not supported by Qt Quick Designer at:"));
|
||||
bool block = m_ignoreWarningsCheckBox->blockSignals(true);
|
||||
m_ignoreWarningsCheckBox->setChecked(!warningsEnabled());
|
||||
m_ignoreWarningsCheckBox->blockSignals(block);
|
||||
{
|
||||
QSignalBlocker blocker(m_ignoreWarningsCheckBox);
|
||||
m_ignoreWarningsCheckBox->setChecked(!warningsEnabled());
|
||||
}
|
||||
m_ignoreWarningsCheckBox->show();
|
||||
m_continueButton->setText(tr("Ignore"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user