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:
parent
cb43c7176b
commit
188768072f
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user