Utils: Modernize connections

Change-Id: I4650abc84e7c82a4054197319f6c849af9e5b8ce
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-03-05 22:00:05 +02:00
committed by hjk
parent 0c5dac717e
commit 329c493764
29 changed files with 169 additions and 153 deletions

View File

@@ -121,7 +121,8 @@ void CompletingTextEdit::setCompleter(QCompleter *c)
completer()->setWidget(this);
completer()->setCompletionMode(QCompleter::PopupCompletion);
connect(completer(), SIGNAL(activated(QString)), this, SLOT(insertCompletion(QString)));
connect(completer(), static_cast<void (QCompleter::*)(const QString &)>(&QCompleter::activated),
this, [this](const QString &str) { d->insertCompletion(str); });
}
QCompleter *CompletingTextEdit::completer() const