summaryrefslogtreecommitdiffstats
path: root/src/controls/qtmenuitem.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-02-28 17:21:36 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-01 11:09:02 +0100
commit8c2d4207ee82ba060bfbd6e788325d3f5288f03e (patch)
tree053919ab9892e3a63abac77e1ec76e1797825604 /src/controls/qtmenuitem.cpp
parente47e9cf2044444c908e07abae57988d00558e576 (diff)
Menu: Support invisible MenuItems
Note that currently, invisible Menus in MenuBars are not supported because of the QPA backend. To be decided whether we want this... Change-Id: Ide01c0ddc12f07969a5466a77b5c5c67b265ec87 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/qtmenuitem.cpp')
-rw-r--r--src/controls/qtmenuitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/controls/qtmenuitem.cpp b/src/controls/qtmenuitem.cpp
index 124ba4c81..bf2248d16 100644
--- a/src/controls/qtmenuitem.cpp
+++ b/src/controls/qtmenuitem.cpp
@@ -66,6 +66,10 @@ void QtMenuBase::setVisible(bool v)
{
if (v != m_visible) {
m_visible = v;
+
+ if (m_platformItem)
+ m_platformItem->setVisible(m_visible);
+
emit visibleChanged();
}
}