0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

fix compilation of TagsEdit.cpp

qOverload appeared with qt5.7

Reported error:
keepassxc-2.7.0-src/src/gui/tag/TagsEdit.cpp:414:34: error: use of undeclared identifier 'qOverload'
        connect(completer.get(), qOverload<QString const&>(&QCompleter::activated), [this](QString const& text) {
                                 ^
This commit is contained in:
tenzap 2022-03-26 11:23:32 +01:00 committed by Jonathan White
parent 4178e72fe0
commit c33995e075

View File

@ -411,7 +411,7 @@ struct TagsEdit::Impl
void setupCompleter()
{
completer->setWidget(ifce);
connect(completer.get(), qOverload<QString const&>(&QCompleter::activated), [this](QString const& text) {
connect(completer.get(), static_cast<void (QCompleter::*)(QString const&)>(&QCompleter::activated), [this](QString const& text) {
currentText(text);
});
}