9 #include "fwGuiQt/container/QtMenuBarContainer.hpp" 24 QtMenuBarContainer::~QtMenuBarContainer() noexcept
30 void QtMenuBarContainer::clean()
32 SLM_ASSERT(
"The Qt MenuBar is not yet initialized, cleaning is thus impossible", m_menuBar);
36 QList<QMenu *> list = m_menuBar->findChildren<QMenu *>();
37 Q_FOREACH (QMenu *m, list)
46 void QtMenuBarContainer::destroyContainer()
48 SLM_ASSERT(
"The Qt MenuBar is not yet initialized", m_menuBar);
50 QList<QMenu *> allMenu = m_menuBar->findChildren<QMenu *>();
51 OSLM_ASSERT(
"MenuBar container must be empty ( " << allMenu.count() <<
" menus).", allMenu.empty());
59 void QtMenuBarContainer::setQtMenuBar(QMenuBar *menuBar)
61 this->m_menuBar = menuBar;
66 QMenuBar* QtMenuBarContainer::getQtMenuBar()
68 return this->m_menuBar;
#define OSLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...