Menu: Don't create platform item for QQuickMenuItemContainers
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Tue, 17 Dec 2013 16:16:12 +0000 (17:16 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Dec 2013 17:21:00 +0000 (18:21 +0100)
commitae380584de53cf927fe4a7bd62ffb41f73b1faa1
tree1152f59c2af60aa35bfb550915286a0b146d98b2
parent67b523661037cf807974f256f1146d441d8e7d40
Menu: Don't create platform item for QQuickMenuItemContainers

They don't have any QPA counterpart as they're just plain containers.
This also removes that "Menu does not contain the item to be removed"
warning on Mac.

Task-Number: QTBUG-32197
Change-Id: I06e08817194c2e3ad3efd7ded193bfac9d3a1948
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/controls/qquickmenu.cpp
src/controls/qquickmenu_p.h
src/controls/qquickmenuitem.cpp
src/controls/qquickmenuitem_p.h
src/controls/qquickmenuitemcontainer_p.h