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

View File

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

View File

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

View File

@@ -94,7 +94,7 @@ CommonVcsSettings::CommonVcsSettings()
text(Tr::tr("Reset VCS Cache")), text(Tr::tr("Reset VCS Cache")),
Layouting::toolTip(Tr::tr("Reset information about which " Layouting::toolTip(Tr::tr("Reset information about which "
"version control system handles which directory.")), "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 { Row {
PushButton { text("-"), onClicked(minusClick, nullptr) }, PushButton { text("-"), onClicked(minusClick, qApp) },
lineEdit, lineEdit,
PushButton { text("+"), onClicked(plusClick, nullptr) }, PushButton { text("+"), onClicked(plusClick, qApp) },
Group { Group {
title("Splitter in Group"), title("Splitter in Group"),
Column { Column {