Commit f83854fe authored by Kurt Hindenburg's avatar Kurt Hindenburg

fix a lot of issues of readability-implicit-bool-cast

parent 66044df3
...@@ -1096,10 +1096,10 @@ void EditProfileDialog::setupAdvancedPage(const Profile::Ptr profile) ...@@ -1096,10 +1096,10 @@ void EditProfileDialog::setupAdvancedPage(const Profile::Ptr profile)
// Setup the URL hints modifier checkboxes // Setup the URL hints modifier checkboxes
{ {
int modifiers = profile->property<int>(Profile::UrlHintsModifiers); int modifiers = profile->property<int>(Profile::UrlHintsModifiers);
_ui->urlHintsModifierShift->setChecked(modifiers & Qt::ShiftModifier); _ui->urlHintsModifierShift->setChecked((modifiers & Qt::ShiftModifier) != 0u);
_ui->urlHintsModifierCtrl->setChecked(modifiers & Qt::ControlModifier); _ui->urlHintsModifierCtrl->setChecked((modifiers & Qt::ControlModifier) != 0u);
_ui->urlHintsModifierAlt->setChecked(modifiers & Qt::AltModifier); _ui->urlHintsModifierAlt->setChecked((modifiers & Qt::AltModifier) != 0u);
_ui->urlHintsModifierMeta->setChecked(modifiers & Qt::MetaModifier); _ui->urlHintsModifierMeta->setChecked((modifiers & Qt::MetaModifier) != 0u);
connect(_ui->urlHintsModifierShift, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier); connect(_ui->urlHintsModifierShift, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier);
connect(_ui->urlHintsModifierCtrl, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier); connect(_ui->urlHintsModifierCtrl, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier);
connect(_ui->urlHintsModifierAlt, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier); connect(_ui->urlHintsModifierAlt, &QCheckBox::toggled, this, &EditProfileDialog::updateUrlHintsModifier);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment