Use non-null valies for LB connection guards

Task-number: QTCREATORBUG-31024
Change-Id: I532d2daade968ff4aa2f3dc1ba89d2a3a4e9c2eb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2024-06-07 12:10:27 +02:00
parent 73191bce0c
commit 80f46e055c
5 changed files with 9 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ FakeVimSettings::FakeVimSettings()
autoIndent.setValue(true);
smartIndent.setValue(tps.m_autoIndent);
incSearch.setValue(true);
}, nullptr),
}, this),
},
PushButton {
text(Tr::tr("Set Qt Style")),
@@ -213,7 +213,7 @@ FakeVimSettings::FakeVimSettings()
incSearch.setVolatileValue(true);
backspace.setVolatileValue(QString("indent,eol,start"));
passKeys.setVolatileValue(true);
}, nullptr),
}, this),
},
PushButton {
text(Tr::tr("Set Plain Style")),
@@ -227,7 +227,7 @@ FakeVimSettings::FakeVimSettings()
incSearch.setVolatileValue(false);
backspace.setVolatileValue(QString());
passKeys.setVolatileValue(false);
}, nullptr),
}, this),
},
st
},

View File

@@ -50,7 +50,7 @@ CustomQbsPropertiesDialog::CustomQbsPropertiesDialog(const QVariantMap &properti
Column {
PushButton {
text(Tr::tr("&Add")),
onClicked([this] { addProperty(); }, nullptr),
onClicked([this] { addProperty(); }, this),
},
m_removeButton,
st

View File

@@ -133,11 +133,11 @@ QbsProfilesSettingsWidget::QbsProfilesSettingsWidget()
Column {
PushButton {
text(Tr::tr("E&xpand All")),
onClicked([this] { m_propertiesView->expandAll(); }, nullptr),
onClicked([this] { m_propertiesView->expandAll(); }, this),
},
PushButton {
text(Tr::tr("&Collapse All")),
onClicked([this] { m_propertiesView->collapseAll(); }, nullptr),
onClicked([this] { m_propertiesView->collapseAll(); }, this),
},
st,
},

View File

@@ -94,7 +94,7 @@ CommonVcsSettings::CommonVcsSettings()
text(Tr::tr("Reset VCS Cache")),
Layouting::toolTip(Tr::tr("Reset information about which "
"version control system handles which directory.")),
onClicked(&VcsManager::clearVersionControlCache, (QObject *)nullptr)
onClicked(&VcsManager::clearVersionControlCache, this)
}
}
};

View File

@@ -24,9 +24,9 @@ int main(int argc, char *argv[])
};
Row {
PushButton { text("-"), onClicked(minusClick, nullptr) },
PushButton { text("-"), onClicked(minusClick, qApp) },
lineEdit,
PushButton { text("+"), onClicked(plusClick, nullptr) },
PushButton { text("+"), onClicked(plusClick, qApp) },
Group {
title("Splitter in Group"),
Column {