Fix build failure with Qt5.6 (#9382)

This commit is contained in:
tenzap 2023-05-08 05:22:57 +02:00 committed by Jonathan White
parent 9c1a01ffe8
commit 74d96fc06f
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -327,7 +327,7 @@ void AutoTypeSelectDialog::buildActionMenu()
}); });
#if defined(Q_OS_WIN) || defined(Q_OS_MAC) #if defined(Q_OS_WIN) || defined(Q_OS_MAC)
auto typeVirtualAction = new QAction(icons()->icon("auto-type"), tr("Use Virtual Keyboard")); auto typeVirtualAction = new QAction(icons()->icon("auto-type"), tr("Use Virtual Keyboard"), nullptr);
m_actionMenu->insertAction(copyUsernameAction, typeVirtualAction); m_actionMenu->insertAction(copyUsernameAction, typeVirtualAction);
typeVirtualAction->setShortcut(Qt::CTRL + Qt::Key_4); typeVirtualAction->setShortcut(Qt::CTRL + Qt::Key_4);
connect(typeVirtualAction, &QAction::triggered, this, [&] { connect(typeVirtualAction, &QAction::triggered, this, [&] {