forked from qt-creator/qt-creator
Drop Qt5: Cpp/TextEditor: Get rid of QOverload
Change-Id: I010f211b40f876c0f033fd717aaa094f775ea214 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -200,7 +200,7 @@ void CodeAssistantPrivate::requestProposal(AssistReason reason,
|
||||
bool isUpdate)
|
||||
{
|
||||
// make sure to cleanup old proposals if we cannot find a new assistant
|
||||
Utils::ExecuteOnDestruction earlyReturnContextClear([this]() { destroyContext(); });
|
||||
Utils::ExecuteOnDestruction earlyReturnContextClear([this] { destroyContext(); });
|
||||
if (isWaitingForProposal())
|
||||
cancelCurrentRequest();
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ FunctionHintProposalWidget::FunctionHintProposalWidget()
|
||||
|
||||
connect(upArrow, &QAbstractButton::clicked, this, &FunctionHintProposalWidget::previousPage);
|
||||
connect(downArrow, &QAbstractButton::clicked, this, &FunctionHintProposalWidget::nextPage);
|
||||
connect(d->m_popupFrame.data(), &QObject::destroyed, this, [this](){
|
||||
connect(d->m_popupFrame.data(), &QObject::destroyed, this, [this] {
|
||||
qApp->removeEventFilter(this);
|
||||
deleteLater();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user