macOS: Remove setObjectName call from moveWidgetToPlatformItem

It wasn't strictly necessary, and was causing a warning due to
the use of a character literal.

Change-Id: I3552ab06189b3a3f1a635b75bd6c4d8a5bce03f8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-12-10 19:53:13 +01:00
parent cb43c7176b
commit 188768072f

View File

@ -114,7 +114,6 @@ void QMenu::setAsDockMenu()
void QMenuPrivate::moveWidgetToPlatformItem(QWidget *widget, QPlatformMenuItem* item)
{
auto *container = new QWidget;
container->setObjectName("MenuItemWidgetContainer");
container->setAttribute(Qt::WA_TranslucentBackground);
container->setAttribute(Qt::WA_QuitOnClose, false);
QObject::connect(platformMenu, SIGNAL(destroyed()), container, SLOT(deleteLater()));