forked from qt-creator/qt-creator
Various Plugins: Add context object into connections
Change-Id: I360677bebfef16a3233b3b8177cff6da57ec7c31 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -502,7 +502,7 @@ FakeVimExCommandsMappings::FakeVimExCommandsMappings()
|
||||
|
||||
auto infoLabel = new InfoLabel(Tr::tr("Invalid regular expression."), InfoLabel::Error);
|
||||
infoLabel->setVisible(false);
|
||||
connect(m_commandEdit, &FancyLineEdit::validChanged, [infoLabel](bool valid){
|
||||
connect(m_commandEdit, &FancyLineEdit::validChanged, this, [infoLabel](bool valid){
|
||||
infoLabel->setVisible(!valid);
|
||||
});
|
||||
commandBoxLayout->addWidget(infoLabel);
|
||||
|
||||
Reference in New Issue
Block a user