Add context parameter in connect()

This commit is contained in:
Chocobo1 2018-03-09 01:22:29 +08:00
parent ffb5c0635e
commit a3d9e457a0
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 3 additions and 3 deletions

View file

@ -190,7 +190,7 @@ FileSystemPathEdit::FileSystemPathEdit(Private::FileEditorWithCompletion *editor
layout->addWidget(editor->widget());
layout->addWidget(d->m_browseBtn);
connect(d->m_browseAction, &QAction::triggered, [this]() {this->d_func()->browseActionTriggered();});
connect(d->m_browseAction, &QAction::triggered, this, [this]() { this->d_func()->browseActionTriggered(); });
}
FileSystemPathEdit::~FileSystemPathEdit() = default;