forked from qt-creator/qt-creator
Fix compile warning on non-Mac platforms.
Change-Id: I46d0cabe5883269c286a7d0078479c7ed2d3485f Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
c6703af8f9
commit
dfcd427900
@@ -402,6 +402,7 @@ void MenuActionContainer::removeMenu(QMenu *menu)
|
|||||||
m_menu->removeAction(menu->menuAction());
|
m_menu->removeAction(menu->menuAction());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
static bool menuInMenuBar(const QMenu *menu)
|
static bool menuInMenuBar(const QMenu *menu)
|
||||||
{
|
{
|
||||||
foreach (const QWidget *widget, menu->menuAction()->associatedWidgets()) {
|
foreach (const QWidget *widget, menu->menuAction()->associatedWidgets()) {
|
||||||
@@ -410,6 +411,7 @@ static bool menuInMenuBar(const QMenu *menu)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool MenuActionContainer::updateInternal()
|
bool MenuActionContainer::updateInternal()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user